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.

42 lines
1.5 KiB

5 years ago
5 years ago
5 years ago
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 <git@joestandring.com>
  4. # GNU GPLv3
  5. # Dependencies: xorg-xsetroot
  6. # Import functions with "$include /route/to/module"
  7. # It is recommended that you place functions in the subdirectory ./bar-functions and use: . "$DIR/bar-functions/dwm_example.sh"
  8. # Store the directory the script is running from
  9. LOC=$(readlink -f "$0")
  10. DIR=$(dirname "$LOC")
  11. # Change the appearance of the module identifier. if this is set to "unicode", then symbols will be used as identifiers instead of text. E.g. [📪 0] instead of [MAIL 0].
  12. # Requires a font with adequate unicode character support
  13. export IDENTIFIER="unicode"
  14. # Import the modules
  15. . "$DIR/bar-functions/dwm_countdown.sh"
  16. . "$DIR/bar-functions/dwm_transmission.sh"
  17. . "$DIR/bar-functions/dwm_cmus.sh"
  18. . "$DIR/bar-functions/dwm_resources.sh"
  19. . "$DIR/bar-functions/dwm_battery.sh"
  20. . "$DIR/bar-functions/dwm_mail.sh"
  21. . "$DIR/bar-functions/dwm_backlight.sh"
  22. . "$DIR/bar-functions/dwm_alsa.sh"
  23. . "$DIR/bar-functions/dwm_pulse.sh"
  24. . "$DIR/bar-functions/dwm_weather.sh"
  25. . "$DIR/bar-functions/dwm_vpn.sh"
  26. . "$DIR/bar-functions/dwm_network.sh"
  27. . "$DIR/bar-functions/dwm_keyboard.sh"
  28. . "$DIR/bar-functions/dwm_ccurse.sh"
  29. . "$DIR/bar-functions/dwm_date.sh"
  30. # Update dwm status bar every second
  31. while true
  32. do
  33. xsetroot -name "[$(dwm_countdown)][$(dwm_transmission)][$(dwm_cmus)][$(dwm_resources)][$(dwm_battery)][$(dwm_mail)][$(dwm_backlight)][$(dwm_alsa)][$(dwm_weather)][$(dwm_vpn)][$(dwm_network)][$(dwm_keyboard)][$(dwm_date)]"
  34. sleep 1
  35. done