summaryrefslogtreecommitdiffstats
path: root/.scripts/i3cmds/dmenuumount
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-10 19:56:09 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-04-10 19:56:09 -0400
commit1f6dbfea037366656a7184385957008d7504cd4a (patch)
tree9294cf4454812e4484c2780de3aac3a5dce8e530 /.scripts/i3cmds/dmenuumount
parentb937082b98cb2210497a9e6766b46ddfd5a4548f (diff)
downloadeibhear-1f6dbfea037366656a7184385957008d7504cd4a.tar.gz
eibhear-1f6dbfea037366656a7184385957008d7504cd4a.tar.zst
eibhear-1f6dbfea037366656a7184385957008d7504cd4a.zip
dmenu mount and umount fixes
Diffstat (limited to '.scripts/i3cmds/dmenuumount')
-rwxr-xr-x.scripts/i3cmds/dmenuumount6
1 files changed, 3 insertions, 3 deletions
diff --git a/.scripts/i3cmds/dmenuumount b/.scripts/i3cmds/dmenuumount
index 260c1c8..dee53e7 100755
--- a/.scripts/i3cmds/dmenuumount
+++ b/.scripts/i3cmds/dmenuumount
@@ -7,17 +7,17 @@ unmountusb() {
[ -z "$drives" ] && exit
chosen=$(echo "$drives" | dmenu -i -p "Unmount which drive?" | awk '{print $1}')
[ -z "$chosen" ] && exit
- sudo -A umount "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted."
+ sudo -A umount "$chosen" && notify-send "💻 USB unmounting" "$chosen unmounted."
}
unmountandroid() { \
chosen=$(awk '/simple-mtpfs/ {print $2}' /etc/mtab | dmenu -i -p "Unmount which device?")
[ -z "$chosen" ] && exit
- sudo -A umount -l "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted."
+ sudo -A umount -l "$chosen" && notify-send "🤖 Android unmounting" "$chosen unmounted."
}
asktype() { \
- case $(printf "USB\\nAndroid" | dmenu -i -p "Unmount a USB drive or Android device?") in
+ case "$(printf "USB\\nAndroid" | dmenu -i -p "Unmount a USB drive or Android device?")" in
USB) unmountusb ;;
Android) unmountandroid ;;
esac