From 8486786384373cc1263b4be8bfb99b0aec879157 Mon Sep 17 00:00:00 2001 From: Saumit Date: Sun, 25 Aug 2024 11:46:29 +0530 Subject: .scripts: Adding more clauses to pidkillall script --- .scripts/pidkillall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.scripts/pidkillall') 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 -- cgit v1.2.3