srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/kill-process
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2025-09-24 05:01:20 +0200
committersrdusr <[email protected]>2025-09-24 05:01:20 +0200
commit553cb2204b0bf27afe13c6332f5679bbd47172a0 (patch)
tree75c86ff018122a682e0afd7a0e2a0228a63e44bd /kill-process
parentb20e4e004be74884cc72c57a3128e36fd5177d7a (diff)
downloadscripts-553cb2204b0bf27afe13c6332f5679bbd47172a0.tar.gz
scripts-553cb2204b0bf27afe13c6332f5679bbd47172a0.zip
Update/Overhaul
Diffstat (limited to 'kill-process')
-rwxr-xr-xkill-process6
1 files changed, 0 insertions, 6 deletions
diff --git a/kill-process b/kill-process
deleted file mode 100755
index 5247e5f..0000000
--- a/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")