dwm_status.sh 280 B

12345678910
  1. #!/bin/sh
  2. while true; do
  3. MEM="$(free -h | awk '(NR==2){ print $3 }')"
  4. VOL="$(amixer get Master | awk -F'[][]' 'END{ print $4":"$2 }')"
  5. TEMP="$(sensors | awk '/Package/{print $4}')"
  6. DATE="$(date)"
  7. xsetroot -name " $VOL | $MEM | $TEMP | $DATE"
  8. sleep 5
  9. done