dwm_status.sh 331 B

1234567891011121314151617
  1. #!/bin/sh
  2. trap 'echo "Caught SIGUSR1"' USR1
  3. while true; do
  4. STATUS=""
  5. for section in "$HOME"/.scripts/status/*.sh; do
  6. if [ -z "$STATUS" ]; then
  7. STATUS="$($section)"
  8. else
  9. STATUS="$STATUS | $($section)"
  10. fi
  11. done
  12. xsetroot -name " $STATUS"
  13. sleep 5 &
  14. wait $!
  15. done