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
598 B

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