mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
feat(cable): add extensive television cable channel configurations and related files
This commit is contained in:
1 parent
7c786f9349
commit
e9a7fd1fde
72 files changed
+2101
No files matched your search
@@ -0,0 +1,38 @@
|
||||
[metadata]
|
||||
name = "procs"
|
||||
description = "A channel to find and manage running processes"
|
||||
requirements = ["ps", "awk"]
|
||||
|
||||
[source]
|
||||
command = "ps -e -o pid=,ucomm= | awk '{print $1, $2}'"
|
||||
display = "{split: :1}"
|
||||
output = "{split: :0}"
|
||||
|
||||
[preview]
|
||||
command = "ps -p '{split: :0}' -o user,pid,ppid,state,%cpu,%mem,command | fold"
|
||||
|
||||
[keybindings]
|
||||
ctrl-k = "actions:kill"
|
||||
f2 = "actions:term"
|
||||
ctrl-s = "actions:stop"
|
||||
ctrl-c = "actions:cont"
|
||||
|
||||
[actions.kill]
|
||||
description = "Kill the selected process (SIGKILL)"
|
||||
command = "kill -9 {split: :0}"
|
||||
mode = "execute"
|
||||
|
||||
[actions.term]
|
||||
description = "Terminate the selected process (SIGTERM)"
|
||||
command = "kill -15 {split: :0}"
|
||||
mode = "execute"
|
||||
|
||||
[actions.stop]
|
||||
description = "Stop/pause the selected process (SIGSTOP)"
|
||||
command = "kill -STOP {split: :0}"
|
||||
mode = "fork"
|
||||
|
||||
[actions.cont]
|
||||
description = "Continue/resume the selected process (SIGCONT)"
|
||||
command = "kill -CONT {split: :0}"
|
||||
mode = "fork"
|
||||
Reference in new issue
Block a user