aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorjman <srht@city17.xyz>2025-06-22 21:16:23 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2026-10-27 15:44:27 +0100
commitf554f7974def2e25babfc4c5d15524acb01f42f7 (patch)
tree756b24e0dfdab1474fee0fb6aae8aa81917f5a80 /src
parentMake sleep_argv0 selection-specific (diff)
downloadpassword-store-master.tar.xz
password-store-master.zip
Support imv for viewing Wayland QR codesHEADmaster
Diffstat (limited to 'src')
-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