diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2021-01-01 17:05:47 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2021-01-01 17:05:47 +0100 |
commit | b3b2b889cb0cb645384bab179b2620a97c1a24d3 (patch) | |
tree | c406f75c1bfb99d7f95e14a51dca9741106eab81 /killp | |
parent | 68944cb4b812b42a9d7d8752810fea01496b02e0 (diff) | |
download | bin-b3b2b889cb0cb645384bab179b2620a97c1a24d3.zip bin-b3b2b889cb0cb645384bab179b2620a97c1a24d3.tar.gz |
add killp
Diffstat (limited to 'killp')
-rwxr-xr-x | killp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -0,0 +1,4 @@ +#! /bin/sh +P=$(ps -u $USER -o pid,%mem,%cpu,comm | sort -b -k2 -r | sed -n '2!p' | dmenu -i -l 15 | awk '{print $1}') +kill -15 $P 2>/dev/null +notify-send "$P killed" |