dots

git clone git://mattcarlson.org/repos/dots.git
Log | Files | Refs

date.sh (230B)


      1 #!/bin/sh
      2 #
      3 # date
      4 
      5 ICON=''
      6 
      7 bar() { printf '%s\n' "${ICON} $(date +%Y-%m-%d)" ; }
      8 
      9 main() {
     10     # called from bar
     11     [ ${#} -eq 0 ] && bar
     12 
     13     # bar usage
     14     case ${BLOCK_BUTTON} in 1) herbe "$(cal)" ;; esac
     15 }
     16 
     17 main "${@}"