diff options
Diffstat (limited to '.local/bin/mountmgr')
| -rw-r--r--[-rwxr-xr-x] | .local/bin/mountmgr | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.local/bin/mountmgr b/.local/bin/mountmgr index 8c69aab..04a836b 100755..100644 --- a/.local/bin/mountmgr +++ b/.local/bin/mountmgr @@ -2,6 +2,11 @@ export UNMOUNT_BLACKLIST="luksdev nvme0n1p1" export PINENTRY="pinentry-dmenu" +if [ -n "$WAYLAND_DISPLAY" ]; then + export DMENU="dmenu-wl" +else + export DMENU="dmenu" +fi prompt_pin() { printf "SETPROMPT $1\nGETPIN\n" | $PINENTRY | grep '^D' | sed 's/^D //g' @@ -40,7 +45,7 @@ main_dialog() { done } -select=$(main_dialog | dmenu) +select=$(main_dialog | $DMENU) [ -z "$select" ] && exit |