aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2018-03-22 18:23:50 +0100
committerRasmus Steinke <rasi@xssn.at>2018-03-22 18:23:50 +0100
commitdbf4eaf1b6d75d5c89012bcd55d434ac5563a5de (patch)
treef6bc1aa16435b5a6471c3df2f1e64f72a65d3b7d
parent04e61acfe6ae6792b96f640c3f7d4d2006cf9825 (diff)
downloadrofi-pass-dbf4eaf1b6d75d5c89012bcd55d434ac5563a5de.tar.gz
add qrcode section to config, change default viewer
-rw-r--r--config.example7
-rwxr-xr-xrofi-pass2
2 files changed, 8 insertions, 1 deletions
diff --git a/config.example b/config.example
index 52ba160..e2c03fd 100644
--- a/config.example
+++ b/config.example
@@ -7,6 +7,13 @@ _rofi () {
rofi -i -no-auto-select "$@"
}
+# image viewer to display qrcode of selected entry
+# qrencode is needed to generate the image and a viewer
+# that can read from pipes. Known viewers to work are feh and display
+_image_viewer () {
+ feh -
+}
+
# xdotool needs the keyboard layout to be set using setxkbmap
# You can do this in your autostart scripts (e.g. xinitrc)
diff --git a/rofi-pass b/rofi-pass
index c334faf..8512a54 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -10,7 +10,7 @@ _rofi () {
}
_image_viewer () {
- sxiv -
+ feh -
}
# We expect to find these fields in pass(1)'s output