i3blocks scripts added

This commit is contained in:
Luke Smith
2018-04-22 17:39:23 -07:00
parent 84557167e6
commit cec92894fc
8 changed files with 51 additions and 4 deletions

View File

@@ -11,4 +11,4 @@ drives=$(lsblk -lp | grep "t /" | grep -v "$exclusionregex" | awk '{print $1, "(
[[ "$drives" = "" ]] && exit
chosen=$(echo "$drives" | dmenu -i -p "Unmount which drive?" | awk '{print $1}')
[[ "$chosen" = "" ]] && exit
sudo umount $chosen
sudo umount $chosen && pgrep -x dunst && notify-send "$chosen unmounted."