summaryrefslogtreecommitdiff
path: root/dmenuumount
diff options
context:
space:
mode:
authorZachIR <zachir@librem.one>2025-07-15 22:31:39 -0500
committerZachIR <zachir@librem.one>2025-07-15 22:31:39 -0500
commit38be649ab8b5a12b08e81d38e3ff5e7ea69e09e5 (patch)
tree83853cd2e2129a57244a22c16e21ab546bac3ffc /dmenuumount
parent4da60aad75c6d8cc03423fa45620fb670d3c02bb (diff)
parent45b2f55aea9200ce7570b39a68de8287fdd72d94 (diff)
Merge branch 'master' of zachir.xyz:zachir/bin
Diffstat (limited to 'dmenuumount')
-rwxr-xr-xdmenuumount14
1 files changed, 4 insertions, 10 deletions
diff --git a/dmenuumount b/dmenuumount
index 6dc25e2..59383f1 100755
--- a/dmenuumount
+++ b/dmenuumount
@@ -1,4 +1,6 @@
#!/bin/sh
+# Copyright Luke Smith, GPLv3
+# Modified by Zach Smith
# A dmenu prompt to unmount drives.
# Provides you with mounted partitions, select one to unmount.
@@ -13,16 +15,8 @@ while getopts "hd:" o; do case "${o}" in
*) printhelp ;;
esac done
-if [ -n "$WAYLAND_DISPLAY" ]; then
- DMENU="tofi"
- DEFARGS="-c $HOME/.config/tofi/themes/dmenu_vertical --prompt-text"
-elif [ -n "$DISPLAY" ]; then
- DMENU="dmenu"
- DEFARGS="-l 15 -p"
-else
- print "Can't tell if Wayland or X; what gives?\n"
- exit 1
-fi
+DMENU="dmenu"
+DEFARGS="-l 15 -p"
unmountusb() {
[ -z "$drives" ] && exit