diff options
| author | iamcheeseman <[email protected]> | 2026-05-12 22:05:30 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-12 22:05:30 -0400 |
| commit | 3d67ce5f6c293b023aa3cd6d9dc720b1635b9ca7 (patch) | |
| tree | 8dd368b2606d5486f71198d743a336fb8746b484 /.local/bin/dwmstatus.sh | |
| parent | 0b0ca928bba7bd45ef09e7068f85c96eefc6116b (diff) | |
switch back to dwm
Diffstat (limited to '.local/bin/dwmstatus.sh')
| -rwxr-xr-x | .local/bin/dwmstatus.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/dwmstatus.sh b/.local/bin/dwmstatus.sh new file mode 100755 index 0000000..22dd9bd --- /dev/null +++ b/.local/bin/dwmstatus.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +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}')" + clock="$(date +'%a %b %d, %r')" + volume="vol $(pactl get-sink-volume @DEFAULT_SINK@ | awk 'NR==1{printf "%s", $5}')" + + sleep 1 + xsetroot -name " $ram ~ $cpu ~ $volume ~ $clock " +done |
