From cbc11422dc6481c2f305d318a6920403400bab30 Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Wed, 13 May 2026 11:08:29 -0400 Subject: fix and update dwmstatus --- .local/bin/dwmstatus.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.local/bin/dwmstatus.sh') diff --git a/.local/bin/dwmstatus.sh b/.local/bin/dwmstatus.sh index 22dd9bd..89018bb 100755 --- a/.local/bin/dwmstatus.sh +++ b/.local/bin/dwmstatus.sh @@ -2,10 +2,10 @@ while true; do ram="ram $(free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2}')" - cpu="load $(top -n1 | awk 'NR==1{printf "%g", $10}')" + cpu="load $(uptime -r | cut -d ' ' -f 4)" clock="$(date +'%a %b %d, %r')" - volume="vol $(pactl get-sink-volume @DEFAULT_SINK@ | awk 'NR==1{printf "%s", $5}')" + volume="vol $(pactl get-sink-volume @DEFAULT_SINK@ | cut -d ' ' -f 6)" + xsetroot -name " $ram ~ $cpu ~ $volume ~ $clock " sleep 1 - xsetroot -name " $ram ~ $cpu ~ $volume ~ $clock " done -- cgit v1.3-2-g0d8e