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.

dzen_calendar.sh 579B

123456789101112131415
  1. #!/bin/bash
  2. #
  3. # pop-up calendar for dzen
  4. # (c) 2007, by Robert Maneaq
  5. # mods 2012, by arpinux
  6. TODAY=$(expr `date +'%d'` + 0)
  7. MONTH=`date +'%m'`
  8. YEAR=`date +'%Y'`
  9. (echo '^fg(green)'`date +'%A, %H:%M'`; \
  10. echo ' day:'`date +'%j'`' - week:'`date +'%U'`; \
  11. echo; cal | sed -re "s/(^|[ ])($TODAY)($|[ ])/\1^fg(red)\2^fg()^bg()\3/"; \
  12. [ $MONTH -eq 12 ] && YEAR=`expr $YEAR + 1`; cal `expr \( $MONTH + 1 \) % 12` $YEAR; \
  13. sleep 60) | dzen2 -fn '-*-terminus-*-*-*-*-12-*-*-*-*-*-iso10646-*' -x 760 -y 20 -h 14 -w 125 -l 18 -e 'onstart=uncollapse;button1=togglecollapse;button3=exit'