conky calendar

Karl Vogel vogelke+unix at pobox.com
Sun Oct 11 03:48:45 UTC 2009


You can use the terminal standout codes to highlight today's date, but you
need either the Linux compatibility stuff or a recent version of ncurses
installed:

  #!/bin/ksh
  PATH=/usr/compat/linux/usr/bin:/usr/local/bin:/bin:/usr/bin
  export PATH

  DAY=$(date +%d | sed 's/0\([123456789]\)/ \1/')
  SMSO=$(tput smso)
  RMSO=$(tput rmso)
  cal | sed -e 's/^/ /' -e "3,\$s/ ${DAY}/ ${SMSO}${DAY}${RMSO}/"
  exit 0

-- 
Karl Vogel                      I don't speak for the USAF or my company

Letterman's top signs your cat is trying to kill you #9:
 To tune of Meow Mix song sings, "Kill kill kill kill, kill kill kill kill"


More information about the freebsd-questions mailing list