summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-07-09 23:07:00 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-07-09 23:07:00 +0530
commitec7eef38a7448787575861c1a9672d60875be128 (patch)
tree7308e215c960b15ed7b12fbf6c3b9fae9027886f
parent86339c76d98cc0f150e147bcc5cdd5fdfe956a01 (diff)
.scripts: Updating pidkillall script to use tofi instead of dmenu
-rwxr-xr-x.scripts/pidkillall2
1 files changed, 1 insertions, 1 deletions
diff --git a/.scripts/pidkillall b/.scripts/pidkillall
index f4c0e6c..69de0dd 100755
--- a/.scripts/pidkillall
+++ b/.scripts/pidkillall
@@ -1,6 +1,6 @@
#!/bin/sh
-psout=$(ps -u $USER -o pid,%cpu,%mem,comm | sed -n '1!p' | sort -b -k2 -r| cut --characters=1-18 --complement | awk '!x[$0]++'| dmenu -i -l 15 )
+psout=$(ps -u $USER -o pid,%cpu,%mem,comm | sed -n '1!p' | sort -b -k2 -r| cut --characters=1-18 --complement | awk '!x[$0]++'| tofi --prompt-text "Choose the program you wish to kill: ")
##uniq without piping into sort before with the help of awk
##pname of telegram-desktop is displayed as telegram-deskto