From 3d67ce5f6c293b023aa3cd6d9dc720b1635b9ca7 Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Tue, 12 May 2026 22:05:30 -0400 Subject: switch back to dwm --- .local/bin/dwmstatus.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .local/bin/dwmstatus.sh (limited to '.local/bin/dwmstatus.sh') 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 -- cgit v1.3-2-g0d8e