summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xkillp4
1 files changed, 4 insertions, 0 deletions
diff --git a/killp b/killp
new file mode 100755
index 0000000..530a951
--- /dev/null
+++ b/killp
@@ -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"