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.

23 lines
540 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. if [ "$IDENTIFIER" = "unicode" ]; then
  10. printf "[⏳ %s]\n" "$(tail -1 /tmp/countdown.*)"
  11. else
  12. printf "[CDN %s]\n" "$(tail -1 /tmp/countdown.*)"
  13. fi
  14. break
  15. fi
  16. done
  17. }
  18. dwm_countdown