diff options
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/dmkill | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |