No idea why your cal line doesn't colour today, it doesn't work for me either.SebbyNC wrote:Here's my Conky (based on the "Conky Elegant" found on gnome-look.org) still improving, that I run on my laptop.
I added a simple calendar, but whatever the script I try, the current day highlighting doesn't work (it works fine when I run "cal" in the terminal). I haven't found anybody with the same problem, so haven't found a way to fix it.
Do you have the font: monospace installed? If not try "DejaVu Sans Mono" or any other mono font you know you have installed.
Also: A "calendar" must use a mono font to align right.
Try this conky it uses DejaVu Sans Mono, most distros have that by default I believe.
The output:
The top calendar allows you to give the day names different colours as well, or add the month and year rather than "TU WE TH" as per the sample.
The second one is a working version similar to what you have.
NOTE: the three ${goto 0} commands. Two with the top sample one with the bottom, change those values as you need
Code: Select all
background no
own_window yes
own_window_type override #normal
own_window_transparent yes #yes
own_window_hints skip_taskbar,skip_pager
own_window_title Trash
double_buffer yes
use_spacer none
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
stippled_borders 0
border_width 0
#default_outline_color black
#default_shade_color black
draw_borders no
draw_outline no # amplifies text if yes
draw_shades no # shadecolor black
# Colors
default_color DCDCDC #Gainsboro
color0 FFFFF0 #Ivory
color1 FFA07A #LightSalmon
color2 FF8C00 #Darkorange
color3 C6FF8E #a light green #FFF00 #Chartreuse
color4 778899 #LightSlateGrey
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red
# Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr
alignment tl
border_inner_margin 0
border_outer_margin 0
text_buffer_size 1024
no_buffers yes # Subtract file system buffers from used memory?
short_units yes
pad_percents 2
top_name_width 7
maximum_width 200
minimum_size 200 0 # minimum_size width & height
gap_x 100 # left-right
gap_y 100 # up-down
use_xft yes
xftfont DejaVu Sans Mono:bold:size=8
xftalpha 2.5
update_interval 86400
TEXT
Try this:
${goto 0}${color2}SU MO ${color}${time %b %y}${color2} FR SA
${voffset 5}${color4}${execpi 86400 DJS=`date +%_d`; cal | sed '2d' | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${goto 0} /' | sed /" $DJS "/s/" $DJS "/" "'${color2}'"$DJS"'${color4}'" "/}${color}
or this:
${color4}${execpi 86400 DJS=`date +%_d`; cal | sed '2d' | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${goto 0} /' | sed /" $DJS "/s/" $DJS "/" "'${color2}'"$DJS"'${color4}'" "/}
Also if you want to line up those processes check this out: goto | offset | voffset