aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/mountmgr
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-03-25 08:07:38 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-03-25 08:07:38 +0100
commitfa95256f5642fbadc7901d047add4dc81a2091f0 (patch)
tree5730dcc7ec95dde7f2753b27d95bb64b91f22061 /.local/bin/mountmgr
parent798ed274c84f265bdf9a28fd171ff36807ff1b27 (diff)
some chanes
Diffstat (limited to '.local/bin/mountmgr')
-rw-r--r--[-rwxr-xr-x].local/bin/mountmgr7
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