2022-03-21 18:05:05 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-04-05 16:59:13 +02:00
|
|
|
# kill those pesky proceses
|
|
|
|
|
2022-07-17 11:03:13 +02:00
|
|
|
source $HOME/.config/dmenu/config
|
|
|
|
|
|
|
|
selected=$(ps --user "$USER" -F | $DMENU -p "Select procces to kill:" -l 5 | awk '{print $2" "$11}')
|
2022-03-21 18:05:05 +01:00
|
|
|
|
|
|
|
[ -n "$selected" ] || exit
|
|
|
|
|
2022-07-17 11:03:13 +02:00
|
|
|
answer=$(printf "yes\\nno" | $DMENU -p "Are you sure?")
|
2022-03-21 18:05:05 +01:00
|
|
|
|
|
|
|
[ $answer = "yes" ] || exit
|
|
|
|
|
|
|
|
kill -9 "${selected%% *}"
|
|
|
|
|
|
|
|
quick-notify "Killed Procces" "$selected"
|