summaryrefslogtreecommitdiffstats
path: root/.scripts/i3cmds
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-11-24 09:07:57 -0500
committerLuke Smith <luke@lukesmith.xyz>2018-11-24 09:07:57 -0500
commit75e67f810f3807fc8b35417ca8612eeafe287b0b (patch)
tree3d3b67822e94aeadfb981bc62f4aae2badccc7e4 /.scripts/i3cmds
parentf71c10914f4293821e215d18a878bf3c4475697f (diff)
downloadeibhear-75e67f810f3807fc8b35417ca8612eeafe287b0b.tar.gz
eibhear-75e67f810f3807fc8b35417ca8612eeafe287b0b.tar.zst
eibhear-75e67f810f3807fc8b35417ca8612eeafe287b0b.zip
notify-send if in fstab
Diffstat (limited to '.scripts/i3cmds')
-rwxr-xr-x.scripts/i3cmds/dmenumount6
1 files changed, 3 insertions, 3 deletions
diff --git a/.scripts/i3cmds/dmenumount b/.scripts/i3cmds/dmenumount
index cdeca18..431141f 100755
--- a/.scripts/i3cmds/dmenumount
+++ b/.scripts/i3cmds/dmenumount
@@ -17,16 +17,16 @@ getmount() { \
mountusb() { \
chosen="$(echo "$usbdrives" | dmenu -i -p "Mount which drive?" | awk '{print $1}')"
- sudo -A mount "$chosen" && exit 0
+ sudo -A mount "$chosen" && notify-send "$chosen mounted." && exit 0
getmount "/mnt /media /mount /home -maxdepth 5 -type d"
- sudo -A mount "$chosen" "$mp" && pgrep -x dunst && notify-send "$chosen mounted to $mp."
+ sudo -A mount "$chosen" "$mp" && notify-send "$chosen mounted to $mp."
}
mountandroid() { \
chosen=$(echo "$anddrives" | dmenu -i -p "Which Android device?" | cut -d : -f 1)
getmount "$HOME -maxdepth 3 -type d"
simple-mtpfs --device "$chosen" "$mp"
- echo simple-mtpfs --device "$chosen" "$mp"
+ notify-send "Android device mounted to $mp."
}
asktype() { \