diff options
-rwxr-xr-x | .scripts/pidkillall | 2 |
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 |