From cec92894fcf3382a2d1dd8450c63767941fed404 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 22 Apr 2018 17:39:23 -0700 Subject: i3blocks scripts added --- .scripts/dmenumount | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '.scripts/dmenumount') diff --git a/.scripts/dmenumount b/.scripts/dmenumount index 2cdf152..e0bb500 100755 --- a/.scripts/dmenumount +++ b/.scripts/dmenumount @@ -1,7 +1,5 @@ #!/bin/sh -# Should be run with sudo. - # Gives a dmenu prompt to mount unmounted drives. # If they're in /etc/fstab, they'll be mounted automatically. # Otherwise, you'll be prompted to give a mountpoint from already existsing directories. @@ -24,4 +22,4 @@ if [[ ! -d "$mountpoint" ]]; then mkdiryn=$(echo -e "No\nYes" | dmenu -i -p "$mountpoint does not exist. Create it?") [[ "$mkdiryn" = Yes ]] && sudo mkdir -p "$mountpoint" fi -sudo mount "$chosen" "$mountpoint" +sudo mount $chosen $mountpoint && pgrep -x dunst && notify-send "$chosen mounted to $mountpoint." -- cgit v1.3.1