setdwmstat 345 B

12345678910111213141516
  1. #!/bin/sh
  2. # set dwm's status
  3. while (true)
  4. do
  5. xsetroot -name "$(printf '%s E: %s W: %s %d°C %d%% %s' \
  6. "$(getsong)" \
  7. "$(geteth)" \
  8. "$(getwifi)" \
  9. "$(gettemp)" \
  10. "$(getvol)" \
  11. "$(date '+%a %d.%m.%y %H:%M')" \
  12. )"
  13. sleep 30
  14. done