diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-04-22 17:39:23 -0700 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-04-22 17:39:23 -0700 |
| commit | cec92894fcf3382a2d1dd8450c63767941fed404 (patch) | |
| tree | 18250c00e6be565f8e16ae0bc45a9c7774f1034e /.scripts/dmenumount | |
| parent | 84557167e6a3c678202d4edb6dc06d1c8dfde51f (diff) | |
| download | eibhear-cec92894fcf3382a2d1dd8450c63767941fed404.tar.gz eibhear-cec92894fcf3382a2d1dd8450c63767941fed404.tar.zst eibhear-cec92894fcf3382a2d1dd8450c63767941fed404.zip | |
i3blocks scripts added
Diffstat (limited to '.scripts/dmenumount')
| -rwxr-xr-x | .scripts/dmenumount | 4 |
1 files changed, 1 insertions, 3 deletions
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." |
