dwm-bar for archlinux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
876 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. #!/bin/sh
  2. # A modular status bar for dwm
  3. # Joe Standring <joe@joestandring.com>
  4. # GNU GPLv3
  5. # Dependencies: xorg-xsetroot
  6. # Import functions with "$include /route/to/module"
  7. # It is reccomended that you place functions in the subdirectory ./functions and use: . "$DIR/modules/dwm_example.sh"
  8. # Store the directory the script is running from
  9. LOC=$(readlink -f "$0")
  10. DIR=$(dirname "$LOC")
  11. # Import the modules
  12. . "$DIR/functions/dwm_countdown.sh"
  13. . "$DIR/functions/dwm_cmus.sh"
  14. . "$DIR/functions/dwm_resources.sh"
  15. . "$DIR/functions/dwm_mail.sh"
  16. . "$DIR/functions/dwm_alsa.sh"
  17. . "$DIR/functions/dwm_weather.sh"
  18. . "$DIR/functions/dwm_keyboard.sh"
  19. . "$DIR/functions/dwm_date.sh"
  20. # Update dwm's status bar every second
  21. while true
  22. do
  23. xsetroot -name "$(dwm_countdown)$(dwm_cmus)$(dwm_resources)$(dwm_mail)$(dwm_alsa)$(dwm_weather)$(dwm_keyboard)$(dwm_date)"
  24. sleep 1
  25. done