diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2021-03-09 17:49:34 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2021-03-09 17:49:34 +0100 |
commit | 4df978a364b56a5375da0823d4256b516730d29e (patch) | |
tree | f682b7d732ed39c643ecc031d5ad5c4fd3c9abcc /.local/bin/dmkill | |
parent | update (diff) | |
download | dotfiles-bsd-4df978a364b56a5375da0823d4256b516730d29e.tar.gz dotfiles-bsd-4df978a364b56a5375da0823d4256b516730d29e.tar.bz2 dotfiles-bsd-4df978a364b56a5375da0823d4256b516730d29e.tar.xz dotfiles-bsd-4df978a364b56a5375da0823d4256b516730d29e.tar.zst dotfiles-bsd-4df978a364b56a5375da0823d4256b516730d29e.zip |
update
Diffstat (limited to '')
-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); } |