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.

24 lines
545 B

  1. #!/bin/sh
  2. # A dwm_bar function to show the closest appointment in calcurse
  3. # Joe Standring <git@joestandring.com>
  4. # GNU GPLv3
  5. # Dependencies: calcurse
  6. dwm_ccurse () {
  7. APTSFILE="$HOME/.calcurse/apts"
  8. APPOINTMENT=$(head -n 1 "$APTSFILE" | sed -r 's/\[1\] //')
  9. if [ "$APPOINTMENT" != "" ]; then
  10. printf "%s" "$SEP1"
  11. if [ "$IDENTIFIER" = "unicode" ]; then
  12. printf "💡 %s" "$APPOINTMENT"
  13. else
  14. printf "APT %s" "$APPOINTMENT"
  15. fi
  16. printf "%s\n" "$SEP2"
  17. fi
  18. }
  19. dwm_ccurse