Skip to content

Instantly share code, notes, and snippets.

@mcunha98
Created February 27, 2022 14:12
Show Gist options
  • Save mcunha98/6a67a454e5ae9b76d76e452f64988f9f to your computer and use it in GitHub Desktop.
Save mcunha98/6a67a454e5ae9b76d76e452f64988f9f to your computer and use it in GitHub Desktop.
1) Save into /usr/local/wtf_top.sh
#!/bin/sh
ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head -n20
2) Call into a cmdrunner wtfutil config
proccess:
title: Processos
type: cmdrunner
cmd: "wtf_top.sh"
enabled: true
position:
top: 5
left: 2
height: 2
width: 3
refreshInterval: 10s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment