aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-13 11:08:29 -0400
committeriamcheeseman <[email protected]>2026-05-13 11:08:43 -0400
commitcbc11422dc6481c2f305d318a6920403400bab30 (patch)
tree5bb4f5a1414c31f599e1a13191d7976631cbd6b8
parentd99cf6ff1bf4ef81305f4bcef22a3cbb59873bf7 (diff)
fix and update dwmstatus
-rwxr-xr-x.local/bin/dwmstatus.sh6
-rw-r--r--.xinitrc1
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
diff --git a/.xinitrc b/.xinitrc
index ab8066d..b4161eb 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -8,4 +8,5 @@ pipewire &
devmon --exec-on-drive "notify-send '%p'" &
dunst &
~/.fehbg &
+dwmstatus.sh &
exec dwm