dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

dwmblock-date (323B)


      1 #!/bin/sh
      2 case "$BUTTON" in
      3   1)
      4     if command -v cal >/dev/null 2>&1; then
      5       setsid -f "$TERMINAL" -e cal
      6     elif command -v emacsclient >/dev/null 2>&1; then
      7       emacsclient -a '' -c -e '(progn (calendar) (delete-other-windows))'
      8     fi
      9     ;;
     10   6) "$TERMINAL" -e "$EDITOR" "$0";;
     11 esac
     12 date '+%b %d (%a) %I:%M%p'