aboutsummaryrefslogtreecommitdiff
path: root/dwm_status.sh
diff options
context:
space:
mode:
authorXander Swan <email>2025-12-03 10:00:42 -0500
committerXander Swan <email>2025-12-03 10:00:42 -0500
commitc7c1a753c06061ff3eaf81e32b2e9e3481e275c2 (patch)
tree3d81c986928a986e8547bee23563eb38a52df7a1 /dwm_status.sh
parent6c460ad5c10f7c0549ccade4c8bccaf4cfa3d784 (diff)
update
Diffstat (limited to 'dwm_status.sh')
-rwxr-xr-xdwm_status.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/dwm_status.sh b/dwm_status.sh
new file mode 100755
index 0000000..a8eea62
--- /dev/null
+++ b/dwm_status.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+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 +"%b %d, %H.%M.%S"`
+ vol=`pactl get-sink-volume @DEFAULT_SINK@ | awk 'NR==1{printf "VOL %s", $5}'`
+ xprop -root -set WM_NAME " $vol | $ram | $cpu | $clock "
+ sleep 1
+done