diff options
Diffstat (limited to 'dmenu-unmount')
| -rwxr-xr-x | dmenu-unmount | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dmenu-unmount b/dmenu-unmount index c0b387a..2c59ec4 100755 --- a/dmenu-unmount +++ b/dmenu-unmount | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | # Prompts selection for mounted devices and unmounts the selected one | 3 | # Prompts selection for mounted devices and unmounts the selected one |
| 4 | # Requires: udevil, dmenu (or similar), notify-send (optional) | 4 | # Requires: udevil, dmenu (or similar), notify-send or similar (optional) |
| 5 | 5 | ||
| 6 | menu=${MENU:-dmenu} | 6 | menu=${MENU:-dmenu} |
| 7 | writeout="notify-send" # Change this to whatever you want, e.g. echo | 7 | writeout=herbe # Change this to whatever you want, e.g. echo or notify-send |
| 8 | 8 | ||
| 9 | listdev=$(grep "media" /proc/mounts | sed 's/\/media.*\///g' | \ | 9 | listdev=$(grep "media" /proc/mounts | sed 's/\/media.*\///g' | \ |
| 10 | awk '{print $1" ("$2")"}') | 10 | awk '{print $1" ("$2")"}') |
