+ topcpu icon

This commit is contained in:
committer@tuxwarrior
2026-03-06 11:33:17 -05:00
parent 4ecedf09f2
commit 6302cc0132
2 changed files with 21 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ displayResources() {
ps -eo pid,cmd,%mem --sort=-%mem | head -n 2 | awk 'NR==2 {printf "%s: %s (%s%)", $1, $2, $4}'
elif [[ "${operation}" == "topcpu" ]]; then
# the process that consumes the most cpu
echo /home/poq/.config/nwg-panel/icons/noun-chip-8141465.svg
ps -eo pid,comm,%cpu --sort=-%cpu | head -n 2 | awk 'NR==2 {printf "%s: %s (%s%)", $1, $2, $3}'
else
echo ""