diff options
| author | 2025-06-22 21:16:23 +0200 | |
|---|---|---|
| committer | 2026-10-27 15:44:27 +0100 | |
| commit | f554f7974def2e25babfc4c5d15524acb01f42f7 (patch) | |
| tree | 756b24e0dfdab1474fee0fb6aae8aa81917f5a80 /src | |
| parent | Make sleep_argv0 selection-specific (diff) | |
| download | password-store-master.tar.xz password-store-master.zip | |
Diffstat (limited to 'src')
| -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 |
