diff options
| author | iamcheeseman <[email protected]> | 2026-05-13 11:08:29 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-13 11:08:43 -0400 |
| commit | cbc11422dc6481c2f305d318a6920403400bab30 (patch) | |
| tree | 5bb4f5a1414c31f599e1a13191d7976631cbd6b8 | |
| parent | d99cf6ff1bf4ef81305f4bcef22a3cbb59873bf7 (diff) | |
fix and update dwmstatus
| -rwxr-xr-x | .local/bin/dwmstatus.sh | 6 | ||||
| -rw-r--r-- | .xinitrc | 1 |
2 files changed, 4 insertions, 3 deletions
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 @@ -8,4 +8,5 @@ pipewire & devmon --exec-on-drive "notify-send '%p'" & dunst & ~/.fehbg & +dwmstatus.sh & exec dwm |
