On boot up:

Top right corner is a calendar script by mobilediesel using the "remind" program to highlight special days in the calendar. Mine is set for green for today and FFDEAD #NavajoWhite for the highlighted days.
The conky
# To use #! in a conky use: ${exec echo '#!'}
# killall conky && conky -c ~/Conky/OB_remind-cal &
background no
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints skip_taskbar,skip_pager
own_window_title Remind
use_xft yes
xftfont monospace:size=10
xftalpha 1.0 #0.2
override_utf8_locale yes
total_run_times 0
double_buffer yes
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
use_spacer none
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
uppercase no
imlib_cache_size 0
border_inner_margin 10
border_outer_margin 0
# Colors
default_color DCDCDC #Gainsboro
color0 FFFFF0 #Ivory
color1 FFA07A #LightSalmon
color2 FF8C00 #Darkorange
color3 C6FF8E #Light Green #FFF00 #Chartreuse
color4 778899 #LightSlateGrey
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red
text_buffer_size 512 # 256 is the minimum
short_units yes
pad_percents 2
# maximum_width 160
# minimum_size 160 100
alignment tl
gap_x 15 # left-right
gap_y 15 # up-down
text_buffer_size 3048 # 256 is minimum
update_interval 86400
lua_load ~/Conky/LUA/draw-bg.lua
lua_draw_hook_pre draw_bg
TEXT
${execpi 3600 ~/Conky/scripts/remind_cal.sh}${font}
${voffset 10}${font monospace:size=9}${if_match "${time %b}"=="Jan"}${execp conkyText --template=/home/sector11/Conky/DAYS/appts.template --textfile=/home/sector11/Conky/DAYS/jan.txt}${else}${if_match "${time %b}"=="Feb"}${execp conkyText --template=/home/sector11/Conky/DAYS/appts.template --textfile=/home/sector11/Conky/DAYS/feb.txt}${else}${if_match "${time %b}"=="Mar"}${execp conkyText --template=/home/sector11/Conky/DAYS/appts.template --textfile=/home/sector11/Conky/DAYS/mar.txt}${else}${if_match "${time %b}"=="Apr"}${execp conkyText --template=/home/sector11/Conky/DAYS/appts.template --textfile=/home/sector11/Conky/DAYS/apr.txt}${else}${if_match "${time %b}"=="May"}${execp conkyText --template=/home/sector11/Conky/DAYS/appts.template --textfile=/home/sector11/Conky/DAYS/may.txt}${else}${if_match "${time %b}"=="Jun"}${execp conkyText --template=/home/sector11/Conky/DAYS/appts.template --textfile=/home/sector11/Conky/DAYS/jun.txt}${else}${if_match "${time %b}"=="Jul"}${execp conkyText --template=/home/sector11/Conky/DAYS/appts.template --textfile=/home/sector11/Conky/DAYS/jul.txt}${else}${if_match "${time %b}"=="Aug"}${execp conkyText --template=/home/sector11/Conky/DAYS/appts.template --textfile=/home/sector11/Conky/DAYS/aug.txt}${else}${if_match "${time %b}"=="Sep"}${execp conkyText --template=/home/sector11/Conky/DAYS/appts.template --textfile=/home/sector11/Conky/DAYS/sep.txt}${else}${if_match "${time %b}"=="Oct"}${execp conkyText --template=/home/sector11/Conky/DAYS/appts.template --textfile=/home/sector11/Conky/DAYS/oct.txt}${else}${if_match "${time %b}"=="Nov"}${execp conkyText --template=/home/sector11/Conky/DAYS/appts.template --textfile=/home/sector11/Conky/DAYS/nov.txt}${else}${if_match "${time %b}"=="Dec"}${execp conkyText --template=/home/sector11/Conky/DAYS/appts.template --textfile=/home/sector11/Conky/DAYS/dec.txt}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}
remind_cal.sh
#!/bin/bash
# calendar.sh
# copyright 2011 by Mobilediesel
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#You should have received a copy of the GNU General Public License
#along with this program. If not, see <http://www.gnu.org/licenses/>.
# WARNING - No longer works
#m="m" # uncomment this line for starting the week on Monday instead of Sunday.
# WARNING - No longer works
dates=$(remind -s $HOME/.reminders | awk -F"[ /]+" '{if ( $3!=strftime( "%d" ) ) {DAYS=DAYS $3+0"|"}} END{sub("\\|$","",DAYS);printf DAYS}')
cal -3$m | awk -v DAYS=${dates} '{
{if ( substr($0,1,20)!~/^ *$/ )
{PREV=substr($0,1,20)}}
{if ( NR==3 )
{NEXT=substr($0,45,20)} {sub(/^ */," ",NEXT)}}
{if ( NR==1 )
MONTH=substr($0,23,20)}
{if ( NR==2 )
DOW=substr($0,23,20)}
{if ( substr($0,23,20)!~/^ *$/ && NR!=1 && NR!=2 )
{tmp=substr($0,23,20);sub("^ +1\\>"," 1",tmp);sub(/[ ]+$/,"",tmp)
{if ( length(tmp)==20 || NR==3 )
CAL=CAL tmp"\n"
else
CAL=CAL tmp" "}}}}
END{
{gsub("\\<("DAYS")\\>","${color FFDEAD}&${color 778899}",CAL)}
{sub("\\<"strftime( "%-d" )"\\>","${color 7FFF00}&${color 778899}",CAL)}
sub(/[ ]+$/," ",PREV)
{if ( length(PREV)==20 )
PREV=PREV"\n"}
print "${color C6FF8E}"MONTH"\n${color FFDEAD}"DOW"\n${color 565656}"PREV"${color 778899}"CAL"${color 565656}"NEXT
}'
exit
remind -s $HOME/.reminders
Your ~/.reminders file has to be setup according to reminders configuration.
mine shows me:
16:29:08 ~
$ remind -s $HOME/.reminders
2011/10/10 * * * * {snip - someones birthday}
2011/10/19 * * * * {personal}
2011/10/27 * * * * 3rd last working day of the month
16:29:11 ~
$
Now below that are two lines found in a text file using conkyText, found in conkyMisc, from this line:
${if_match "${time %b}"=="Oct"}${execp conkyText --template=/home/sector11/Conky/DAYS/appts.template --textfile=/home/sector11/Conky/DAYS/oct.txt}
appts.template
${goto 10}${color};${color6};${color1};${color2};${color3};${color4};${color5};${color6};${color7};${color8}
oct.txt - example only - one text file per month
10; birthday
;;12; anniversary
; 10 ;14 ;18
10, 14, 18 - doctors appointments this month.
That's when I boot up - a left click on tint2 clock gives me my conkys - seen below and to the right of the tint2 bar
Last edited by Sector11 (2011-10-01 23:57:42)