From 4df978a364b56a5375da0823d4256b516730d29e Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 9 Mar 2021 17:49:34 +0100 Subject: update --- .local/bin/dmkill | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.local/bin/dmkill') diff --git a/.local/bin/dmkill b/.local/bin/dmkill index 2932353..f23aa49 100755 --- a/.local/bin/dmkill +++ b/.local/bin/dmkill @@ -34,6 +34,9 @@ sub action my $proc; chomp $var; + if (not $var) { + return; + } @split = split / $user /, $var; $pid = $split[0]; $pid =~ s/\D//g; @@ -51,7 +54,7 @@ sub main my $user; $user = getlogin(); - $choice = `ps -U "$user" -o pid,user,command | cut -c -128 | dmenu -i -l 30 -m 0`; + $choice = `ps -U "$user" -o pid,user,comm,time,%cpu,%mem | dmenu -i -l 32 -m 0`; action($choice, $user); return (0); } -- cgit v1.2.3