summaryrefslogtreecommitdiffstats
path: root/.scripts/i3cmds
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-01-18 13:21:25 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-01-18 13:21:25 -0500
commit2eaabe4fbd6ba9d46e1e61af8c3504d611776fe8 (patch)
tree2aeadd1983a06807a4a3c2a0c9b077962cc8363e /.scripts/i3cmds
parent7a0346d01ae533a2b1dc65df99803612f87c7c7b (diff)
downloadeibhear-2eaabe4fbd6ba9d46e1e61af8c3504d611776fe8.tar.gz
eibhear-2eaabe4fbd6ba9d46e1e61af8c3504d611776fe8.tar.zst
eibhear-2eaabe4fbd6ba9d46e1e61af8c3504d611776fe8.zip
svgs will be added later
Diffstat (limited to '.scripts/i3cmds')
-rwxr-xr-x.scripts/i3cmds/dmenumount6
-rwxr-xr-x.scripts/i3cmds/dmenuumount4
2 files changed, 5 insertions, 5 deletions
diff --git a/.scripts/i3cmds/dmenumount b/.scripts/i3cmds/dmenumount
index 4de7438..a270886 100755
--- a/.scripts/i3cmds/dmenumount
+++ b/.scripts/i3cmds/dmenumount
@@ -17,21 +17,21 @@ getmount() { \
mountusb() { \
chosen="$(echo "$usbdrives" | dmenu -i -p "Mount which drive?" | awk '{print $1}')"
- sudo -A mount "$chosen" && notify-send "$chosen mounted." && exit 0
+ sudo -A mount "$chosen" && notify-send -i "$PIX/usb.svg" "$chosen mounted." && exit 0
getmount "/mnt /media /mount /home -maxdepth 5 -type d"
partitiontype="$(lsblk -no "fstype" "$chosen")"
case "$partitiontype" in
"vfat") sudo -A mount -t vfat "$chosen" "$mp" -o rw,umask=0000;;
*) sudo -A mount "$chosen" "$mp"; user="$(whoami)"; ug="$(groups | awk '{print $1}')"; sudo -A chown "$user":"$ug" 741 "$mp";;
esac
- notify-send "$chosen mounted to $mp."
+ notify-send -i "$PIX/usb.svg" "$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"
- notify-send "Android device mounted to $mp."
+ notify-send -i "$PIX/android.svg" "Android device mounted to $mp."
}
asktype() { \
diff --git a/.scripts/i3cmds/dmenuumount b/.scripts/i3cmds/dmenuumount
index a267010..3191ec5 100755
--- a/.scripts/i3cmds/dmenuumount
+++ b/.scripts/i3cmds/dmenuumount
@@ -7,13 +7,13 @@ 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" && pgrep -x dunst && notify-send -i "$PIX/usb.svg" "$chosen unmounted."
}
unmountandroid() { \
chosen=$(awk '/simple-mtpfs/ {print $2}' /etc/mtab | dmenu -i -p "Unmount which device?")
[ -z "$chosen" ] && exit
- fusermount -u "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted."
+ fusermount -u "$chosen" && pgrep -x dunst && notify-send -i "$PIX/android.svg" "$chosen unmounted."
}
asktype() { \