aboutsummaryrefslogtreecommitdiffstatshomepage
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:35:40 +0100
commite3f8fb2f70cbcb81e10127e0d0f328324924de2d (patch)
treedb0275d28e27f22dffd8d7f92e3d027a1b664a9c
parentMake sleep_argv0 selection-specific (diff)
downloadpassword-store-e3f8fb2f70cbcb81e10127e0d0f328324924de2d.tar.xz
password-store-e3f8fb2f70cbcb81e10127e0d0f328324924de2d.zip
Support imv for viewing Wayland QR codes
-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