diff options
| author | Xander Swan <email> | 2025-12-03 10:00:42 -0500 |
|---|---|---|
| committer | Xander Swan <email> | 2025-12-03 10:00:42 -0500 |
| commit | 9a128539e675333e7441ad893c61f8dce625f317 (patch) | |
| tree | 3b4b99678c026d2854857259a9803be68448b032 /dwm_status.sh | |
| parent | b3d6b3ffb2e8fb2c2f6dca90120673f22a40b0a3 (diff) | |
Update lots and lots
Diffstat (limited to 'dwm_status.sh')
| -rwxr-xr-x | dwm_status.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dwm_status.sh b/dwm_status.sh index a8eea62..b72cffb 100755 --- a/dwm_status.sh +++ b/dwm_status.sh @@ -1,10 +1,11 @@ -#!/bin/sh +#!/bin/bash while true; do ram=`free -m | awk 'NR==2{printf "RAM %.2f%%", $3*100/$2}'` cpu=`top -bn1 | grep load | awk '{printf "CPU %.2f", $(NF-2)}'` - clock=`date +"%b %d, %H.%M.%S"` + clock=`date +"%a %b %d, %H.%M.%S"` + pkg=`xbps-query -l | wc -l` vol=`pactl get-sink-volume @DEFAULT_SINK@ | awk 'NR==1{printf "VOL %s", $5}'` - xprop -root -set WM_NAME " $vol | $ram | $cpu | $clock " + xprop -root -set WM_NAME " PKG $pkg | $vol | $ram | $cpu | $clock " sleep 1 -done +done & |
