From 73d7a1a7594bf80727fa999ff2111711c5f4cc64 Mon Sep 17 00:00:00 2001 From: iamcheeseman <[hidden email]> Date: Wed, 28 Jan 2026 16:06:16 -0500 Subject: update stuff frfr --- .local/bin/dwm_status.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .local/bin/dwm_status.sh (limited to '.local/bin/dwm_status.sh') diff --git a/.local/bin/dwm_status.sh b/.local/bin/dwm_status.sh new file mode 100755 index 0000000..b2faf84 --- /dev/null +++ b/.local/bin/dwm_status.sh @@ -0,0 +1,11 @@ +#!/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 +"%a %b %d, %r"` + 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 " PKG $pkg $vol $ram $cpu $clock " + sleep 1 +done & -- cgit v1.3-2-g0d8e