summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit <justsaumit@protonmail.com>2024-08-25 11:46:29 +0530
committerSaumit <justsaumit@protonmail.com>2024-08-25 11:46:29 +0530
commit8486786384373cc1263b4be8bfb99b0aec879157 (patch)
tree09e9d668c2fe8084efa38d34a2ff42119ab85bc4
parent49057b84fb1fbafd427626f3619206aa69f7353a (diff)
.scripts: Adding more clauses to pidkillall script
-rwxr-xr-x.scripts/pidkillall2
1 files changed, 1 insertions, 1 deletions
diff --git a/.scripts/pidkillall b/.scripts/pidkillall
index 69de0dd..33c5654 100755
--- a/.scripts/pidkillall
+++ b/.scripts/pidkillall
@@ -7,4 +7,4 @@ psout=$(ps -u $USER -o pid,%cpu,%mem,comm | sed -n '1!p' | sort -b -k2 -r| cut -
[ "$psout" == telegram-deskto ] && psout=telegram-desktop
killall $psout 2>/dev/null &&
-[ -n "$psout" ] && dunstify "Terminated all processes Successfully" "$psout was killed" -i skull
+[ -n "$psout" ] && dunstify "Terminated all processes Successfully" "$psout was killed" -i skull || dunstify "Error" "Failed to kill $psout" -i error || dunstify "No process was killed" "No process was killed" -i warning