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