aboutsummaryrefslogtreecommitdiff
path: root/unix/utils/kill-process
diff options
context:
space:
mode:
Diffstat (limited to 'unix/utils/kill-process')
-rwxr-xr-xunix/utils/kill-process6
1 files changed, 0 insertions, 6 deletions
diff --git a/unix/utils/kill-process b/unix/utils/kill-process
deleted file mode 100755
index 5247e5f..0000000
--- a/unix/utils/kill-process
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-# pipes list of processes into rofi/dmenu and kills the selection
-
-proc=$(ps -u $USER -o pid,%mem,%cpu,comm | sort -b -k2 -r | sed -n '1!p' | dmenu -i -p "Kill" | awk '{print $1,$4}')
-
-[ -z "$proc" ] || (kill -15 $(echo $proc | awk '{print $1}') 2>/dev/null && notify-send "$(echo $proc | awk '{print $2}') killed")