From b3b2b889cb0cb645384bab179b2620a97c1a24d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 1 Jan 2021 17:05:47 +0100 Subject: add killp --- killp | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 killp 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" -- cgit v1.1-2-g2b99