diff options
author | xero <x@xero.nu> | 2014-07-28 12:20:23 -0400 |
---|---|---|
committer | xero <x@xero.nu> | 2014-07-28 12:20:23 -0400 |
commit | b3d58930a8bfd34c89455284ecd3536696914850 (patch) | |
tree | 1a157b4c4618891938b275ea783e340889fdeb9f /herbstluftwm/code/sys/calendar | |
parent | c68b3e8bb8deae3361eed19a4273bc4665ef3ba7 (diff) | |
download | dotfiles_ascii-b3d58930a8bfd34c89455284ecd3536696914850.tar.xz dotfiles_ascii-b3d58930a8bfd34c89455284ecd3536696914850.zip |
fix names for consistancy
Diffstat (limited to 'herbstluftwm/code/sys/calendar')
-rwxr-xr-x | herbstluftwm/code/sys/calendar | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/herbstluftwm/code/sys/calendar b/herbstluftwm/code/sys/calendar new file mode 100755 index 0000000..f339a8c --- /dev/null +++ b/herbstluftwm/code/sys/calendar @@ -0,0 +1,15 @@ +#!/bin/bash +# popup calendar for dzen +font="-Gohu-GohuFont-Medium-R-Normal--11-80-100-100-C-60-ISO10646-1" +TODAY=$(expr `date +'%d'` + 0) +MONTH=`date +'%m'` +YEAR=`date +'%Y'` +LINES=$(cal -m | wc -l) +LINES=$((LINES + 2)) + +( +date +'^bg(#666666) ' +date +'' +# current month, highlight header and today +cal -m | sed -r -e "1,2 s/.*/^fg(#737373)&^fg()/" -e "s/(^| )($TODAY)($| )/\1^bg(#6A8C8C)^fg(#000000)\2^fg()^bg()\3/") | dzen2 -x 1290 -y 4 -w 146 -h 12 -l $LINES -sa c -p -e 'onstart=uncollapse,hide;button1=exit;' -fg "#909090" -tw 6 -fn "$font" +) |