aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xsrc/password-store.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index c3e9413..a8bfaac 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -183,7 +183,12 @@ clip() {
}
qrcode() {
- if [[ -n $DISPLAY || -n $WAYLAND_DISPLAY ]]; then
+ if [[ -n $WAYLAND_DISPLAY ]]; then
+ if type imv >/dev/null 2>&1; then
+ echo -n "$1" | qrencode --size 10 -o - | imv -w "pass: $2" -W 200 -H 200 -
+ return
+ fi
+ elif [[ -n $DISPLAY ]]; then
if type feh >/dev/null 2>&1; then
echo -n "$1" | qrencode --size 10 -o - | feh -x --title "pass: $2" -g +200+200 -
return