+ topcpu icon
This commit is contained in:
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user