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.

19 lines
418 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. APPOINTMENT=$(calcurse -a | head -n 3 | tr -d '\n+>-' | awk '$1=$1' | sed 's/://')
  8. if [ "$IDENTIFIER" = "unicode" ]; then
  9. printf "[💡 %s]\n" "$APPOINTMENT"
  10. else
  11. printf "[APT %s]\n" "$APPOINTMENT"
  12. fi
  13. }
  14. dwm_ccurse