summaryrefslogtreecommitdiff
path: root/scripts/.local/bin/dmnt
diff options
context:
space:
mode:
authorivan-boikov <ik.boikov.public@protonmail.com>2022-05-22 22:32:07 +0200
committerivan-boikov <ik.boikov.public@protonmail.com>2022-05-22 22:32:07 +0200
commit128ae72e6b0ff6ab70b4c54938a5354218c58abc (patch)
tree31f579c9e67112151acca65ca835b50d181a56a7 /scripts/.local/bin/dmnt
parentf7498cf11733a375e2a70e5139659d10036faf0c (diff)
xprofile and others
Diffstat (limited to 'scripts/.local/bin/dmnt')
-rwxr-xr-xscripts/.local/bin/dmnt2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/.local/bin/dmnt b/scripts/.local/bin/dmnt
index fb615fc..4d4b70c 100755
--- a/scripts/.local/bin/dmnt
+++ b/scripts/.local/bin/dmnt
@@ -73,7 +73,7 @@ unmountdev() { \
pids="$(echo "$processes" | awk '{print $2}')"
#notify-send -u critical "Unmount device" "$result\nPreparing list of processes blocking $1..."
notify-send -u critical "Unmount $1" "$result\nBlocking processes:\n$processes"
- action=$(echo "nothing\nterminate\nkill" | $dmenu -p "What to do to processes blocking $1" -l 3)
+ action=$(echo -e "nothing\nterminate\nkill" | $dmenu -p "What to do to processes blocking $1" -l 3)
case $action in
terminate) echo "$pids" | while IFS='\n' read -r pid ; do kill $pid; done ;;
kill) echo "$pids" | while IFS='\n' read -r pid ; do kill -9 $pid; done ;;