time.sh (262B)
1 #!/bin/sh 2 # 3 # time 4 5 ICON='' 6 7 bar() { printf '%s\n' "${ICON} $(date +%I:%M\ %p)" ; } 8 9 main() { 10 # called from bar 11 [ ${#} -eq 0 ] && bar 12 13 # bar usage 14 case ${BLOCK_BUTTON} in 1) env HERBE_ID=/0 herbe "$(date +%I:%M:%S\ %p)" ;; esac 15 } 16 17 main "${@}"