- #!/bin/bash
- #
- # pop-up calendar for dzen
- #
- # based on (c) 2007, by Robert Manea
- # http://dzen.geekmode.org/dwiki/doku.php?id=dzen:calendar
- # modified by urukrama
- #
- TODAY=$(expr `date +'%d'` + 0)
- MONTH=`date +'%m'`
- YEAR=`date +'%Y'`
- (
- echo '^bg(#373D46)^fg(#7AA6E4)'`date +'%A %d %B %Y %n'`; echo
- \
- # current month, hilight header and today
- cal \
- | sed -re "s/^(.*[A-Za-z][A-Za-z]*.*)$/^fg(#7AA6E4)^bg(#373D46)\1/;s/(^|[ ])($TODAY)($|[ ])/\1^bg(#7AA6E4)^fg(#373D46)\2^fg(#6c6c6c)^bg(#373D46)\3/"
- sleep 5
- ) \
- | dzen2 -fg '#6c6c6c' -bg '#373D46' -fn '-*-fixed-*-*-*-*-12-*-*-*-*-*-*-*' -x 1115 -y 866 -w 160 -l 8 -sa c -e 'onstart=uncollapse;key_Escape=ungrabkeys,exit'
Posted by PrimoTurbo on Thu 26 Jun 16:52
report abuse | download | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.