From 4ecedf09f28fd09c21484dfb8c5639112161ba21 Mon Sep 17 00:00:00 2001 From: "committer@tuxwarrior" Date: Fri, 6 Mar 2026 11:30:19 -0500 Subject: [PATCH] + mostram icon --- dots/bin/resources.sh | 1 + dots/nwg-panel/icons/noun-ram-8252148.svg | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 dots/nwg-panel/icons/noun-ram-8252148.svg diff --git a/dots/bin/resources.sh b/dots/bin/resources.sh index 66a879e..a209d60 100755 --- a/dots/bin/resources.sh +++ b/dots/bin/resources.sh @@ -14,6 +14,7 @@ displayResources() { (grep 'cpu ' /proc/stat; sleep 0.1; grep 'cpu ' /proc/stat) | awk -v RS="" '{printf "%.1f%%", ($13-$2+$15-$4)*100/($13-$2+$15-$4+$16-$5)"%"}' elif [[ "${operation}" == "topmem" ]]; then # the process that consumes the most memory + echo /home/poq/.config/nwg-panel/icons/noun-ram-8252148.svg 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 diff --git a/dots/nwg-panel/icons/noun-ram-8252148.svg b/dots/nwg-panel/icons/noun-ram-8252148.svg new file mode 100644 index 0000000..5caf8d6 --- /dev/null +++ b/dots/nwg-panel/icons/noun-ram-8252148.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file