Configuration file for dwm-bar on macbook air
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.

25 lines
569 B

4 years ago
  1. #!/bin/sh
  2. # A dwm_status function that displays upcoming alarms from alarm.sh
  3. # Joe Standring <git@joestandring.com>
  4. # GNU GPLv3
  5. # Dependencies: https://github.com/joestandring/alarm
  6. dwm_alarm () {
  7. for f in /tmp/alarm.*; do
  8. if [ -e "$f" ]; then
  9. printf "%s" "$SEP1"
  10. if [ "$IDENTIFIER" = "unicode" ]; then
  11. printf "⏰ %s" "$(cat /tmp/alarm.*)"
  12. else
  13. printf "ALM %s" "$(cat /tmp/alarm.*)"
  14. fi
  15. printf "%s\n" "$SEP2"
  16. break
  17. fi
  18. done
  19. }
  20. dwm_alarm