diff options
| -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 |
