Updated my scripts.
This commit is contained in:
parent
7c981ce281
commit
272fb806ef
17 changed files with 128 additions and 82 deletions
15
dmenu-kill
Executable file
15
dmenu-kill
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
# kill those pesky proceses
|
||||
|
||||
selected=$(ps --user "$USER" -F | dmenu -p "Select procces to kill:" -l 5 | awk '{print $2" "$11}')
|
||||
|
||||
[ -n "$selected" ] || exit
|
||||
|
||||
answer=$(printf "yes\\nno" | dmenu -p "Are you sure?")
|
||||
|
||||
[ $answer = "yes" ] || exit
|
||||
|
||||
kill -9 "${selected%% *}"
|
||||
|
||||
quick-notify "Killed Procces" "$selected"
|
Loading…
Add table
Add a link
Reference in a new issue