diff options
| author | 2025-06-22 21:16:23 +0200 | |
|---|---|---|
| committer | 2026-10-27 15:35:40 +0100 | |
| commit | e3f8fb2f70cbcb81e10127e0d0f328324924de2d (patch) | |
| tree | db0275d28e27f22dffd8d7f92e3d027a1b664a9c | |
| parent | Make sleep_argv0 selection-specific (diff) | |
| download | password-store-e3f8fb2f70cbcb81e10127e0d0f328324924de2d.tar.xz password-store-e3f8fb2f70cbcb81e10127e0d0f328324924de2d.zip | |
Support imv for viewing Wayland QR codes
| -rwxr-xr-x | src/password-store.sh | 7 |
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 |
