You are not logged in.
Pages: 1
I need help again xD
I try to add a calendar to my Conky configuration but always looks bad
the calendar that I try to to add is the following
<SNIP>
####
## My colors.
#
color0 White
color1 Ivory
color2 Ivory2
color3 Ivory3
color4 Tan1
color5 Tan2
color6 Gray
color7 AntiqueWhite4
color8 DarkSlateGray
color9 Black
TEXT
<SNIP>
##################
## TIME ##
##################
${voffset 5}${font Arial:bold:size=9.5}${color4}TIME ${color8}${hr 2}
${voffset -4}${if_match ${time %l}<=9}${font RadioSpace:size=32}${color3}${alignc 2}${time %l:%M%p }${else}${if_match ${time %l}>=10}${font RadioSpace:size=32}${color3}${alignc 2}${time %l:%M%p}${endif}${endif}
${voffset -35}${font LiberationSans:size=8}${color4}${alignc 5}Sunrise${offset 1}${execi 600 conkyForecast --location=USAZ0082 --datatype=SR --startday=1}${color3}${offset 2}|${offset 2}${color4}Sunset${offset 1}${execi 600 conkyForecast --location=USAZ0082 --datatype=SS --startday=1}
##################
## CALENDAR ##
##################
${voffset 5}${font Arial:bold:size=9.5}${color4}DATE ${color8}${hr 2}
${voffset 4}${font LiberationSansBold:size=10}${color4}${alignc 7}${execpi 60 VinDSL_Cal= date +'%B${offset 6}%Y'}
${voffset 2}${font LiberationMono:size=9.5}${execpi 60 VinDSL_Cal= cal | sed '1d' | sed -e 's/'`date | awk '{print $3}'`'/\$\{color4}'`date | awk '{print $3}'`'\$\{color3}/' | sed 's/^/${offset 36}${color3}/'}
should look like this
but in my case it looks bad
this is my Conky config, where I want to to add the calendar
##Configuracion Conky
background yes
use_xft yes
xftfont Ariel:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager,sticky
double_buffer yes
minimum_size 200 0
maximum_width 200
draw_shades yes
draw_outline yes
draw_borders no
draw_graph_borders yes
default_color black
default_shade_color black
default_outline_color orange
alignment top_right
gap_x 20 ### left | right
gap_y 45 ### up | down
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
TEXT
${font ariel:bold:size=8}SISTEMA ${hr 2}
${font ariel:normal:size=8}$sysname $kernel $alignr $machine
Host:$alignr$nodename
Uptime:$alignr$uptime
${font ariel:bold:size=8}PROCESADOR ${hr 2}
${font ariel:normal:size=8}${cpugraph cpu1}
CPU: ${cpu cpu1}% ${cpubar cpu1}
${font ariel:bold:size=8}MEMORIA ${hr 2}
${font ariel:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}
${font ariel:bold:size=8}DISCOS ${hr 2}
${font ariel:normal:size=8}Root $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}
${font ariel:bold:size=8}PROCESOS ${hr 2}
${font ariel:normal:size=8}${top_mem name 1}${alignr}${top mem 1} %
${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %
$font${top_mem name 6}${alignr}${top mem 6} %
$font${top_mem name 7}${alignr}${top mem 7} %
$font${top_mem name 8}${alignr}${top mem 8} %
$font${top_mem name 9}${alignr}${top mem 9} %
Last edited by aleex5 (2016-01-01 21:01:16)
Offline
Have a look at the conky calendar thread - your issues may have already been addressed.
You must unlearn what you have learned.
-- yoda
Offline
Have a look at the conky calendar thread - your issues may have already been addressed.
I find it hard English
the link of the item you passed me, I find it confusing
I could not find the solution I'm looking for
Offline
Add the calendar stuff right after TEXT and before your SISTEMA line:
TEXT
##################
## TIME ##
##################
${voffset 5}${font Arial:bold:size=9.5}${color4}TIME ${color8}${hr 2}
${voffset -4}${if_match ${time %l}<=9}${font RadioSpace:size=32}${color3}${alignc 2}${time %l:%M%p }${else}${if_match ${time %l}>=10}${font RadioSpace:size=32}${color3}${alignc 2}${time %l:%M%p}${endif}${endif}
${voffset -35}${font LiberationSans:size=8}${color4}${alignc 5}Sunrise${offset 1}${execi 600 conkyForecast --location=USAZ0082 --datatype=SR --startday=1}${color3}${offset 2}|${offset 2}${color4}Sunset${offset 1}${execi 600 conkyForecast --location=USAZ0082 --datatype=SS --startday=1}
##################
## CALENDAR ##
##################
${voffset 5}${font Arial:bold:size=9.5}${color4}DATE ${color8}${hr 2}
${voffset 4}${font LiberationSansBold:size=10}${color4}${alignc 7}${execpi 60 VinDSL_Cal= date +'%B${offset 6}%Y'}
${voffset 2}${font LiberationMono:size=9.5}${execpi 60 VinDSL_Cal= cal | sed '1d' | sed -e 's/'`date | awk '{print $3}'`'/\$\{color4}'`date | awk '{print $3}'`'\$\{color3}/' | sed 's/^/${offset 36}${color3}/'}
${font ariel:bold:size=8}SISTEMA ${hr 2}
I don't think conkyForcast is working any more, at least not for me. So if you want Sunrise Sunset times may I suggest one of Teo's weather scripts. 2b_Wunderground_API looks good in my time conky :
Colour is a different issue ... you have a default colour of black with orange outline and black shades. The orange outline overrides the shade colouring.
default_color black #orange
draw_shades yes
default_shade_color black
draw_outline yes
default_outline_color orange
draw_borders no
draw_graph_borders yes
Dropping the orange 'outline' and leaving the black 'shadow' give a black on black look, not very effective:
default_color black
draw_shades yes
default_shade_color black
draw_outline no
default_outline_color orange
draw_borders no
Using default: black with orange shades gives a chiselled effect but not very readable:
shaded and outlines should be used to enhance, IMO, the readability of the conky - therefore they should contrast soooooo changing default colour to orange with a black shade ...
default_color orange #black
draw_shades yes
default_shade_color black
draw_outline no
default_outline_color orange
draw_borders no
draw_graph_borders yes
Play with those and see what happens.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
the colors are not a problem
the problem is that when you add the code to the calendar, everything looks bad
without the code of the calendar, Conky looks normal
all I want is to see a calendar on conky
I have tried different codes and nothing works well
I do not know if something that is lacking install on my pc
Offline
please show us the complete conky config. the one that is causing problems, in its completeness.
Offline
please show us the complete conky config. the one that is causing problems, in its completeness.
##Configuracion Conky
background yes
use_xft yes
xftfont Ariel:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager,sticky
double_buffer yes
minimum_size 200 0
maximum_width 200
draw_shades yes
draw_outline yes
draw_borders no
draw_graph_borders yes
default_color black
default_shade_color black
default_outline_color orange
alignment top_right
gap_x 20 ### left | right
gap_y 45 ### up | down
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
TEXT
##################
## TIME ##
##################
${voffset 5}${font Arial:bold:size=9.5}${color4}TIME ${color8}${hr 2}
${voffset -4}${if_match ${time %l}<=9}${font RadioSpace:size=32}${color3}${alignc 2}${time %l:%M%p }${else}${if_match ${time %l}>=10}${font RadioSpace:size=32}${color3}${alignc 2}${time %l:%M%p}${endif}${endif}
${voffset -35}${font LiberationSans:size=8}${color4}${alignc 5}Sunrise${offset 1}${execi 600 conkyForecast --location=USAZ0082 --datatype=SR --startday=1}${color3}${offset 2}|${offset 2}${color4}Sunset${offset 1}${execi 600 conkyForecast --location=USAZ0082 --datatype=SS --startday=1}
##################
## CALENDAR ##
##################
${voffset 5}${font Arial:bold:size=9.5}${color4}DATE ${color8}${hr 2}
${voffset 4}${font LiberationSansBold:size=10}${color4}${alignc 7}${execpi 60 VinDSL_Cal= date +'%B${offset 6}%Y'}
${voffset 2}${font LiberationMono:size=9.5}${execpi 60 VinDSL_Cal= cal | sed '1d' | sed -e 's/'`date | awk '{print $3}'`'/\$\{color4}'`date | awk '{print $3}'`'\$\{color3}/' | sed 's/^/${offset 36}${color3}/'}
${font ariel:bold:size=8}SISTEMA ${hr 2}
${font ariel:normal:size=8}$sysname $kernel $alignr $machine
Host:$alignr$nodename
Uptime:$alignr$uptime
${font ariel:bold:size=8}PROCESADOR ${hr 2}
${font ariel:normal:size=8}${cpugraph cpu1}
CPU: ${cpu cpu1}% ${cpubar cpu1}
${font ariel:bold:size=8}MEMORIA ${hr 2}
${font ariel:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}
${font ariel:bold:size=8}DISCOS ${hr 2}
${font ariel:normal:size=8}Root $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}
${font ariel:bold:size=8}PROCESOS ${hr 2}
${font ariel:normal:size=8}${top_mem name 1}${alignr}${top mem 1} %
${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %
$font${top_mem name 6}${alignr}${top mem 6} %
$font${top_mem name 7}${alignr}${top mem 7} %
$font${top_mem name 8}${alignr}${top mem 8} %
$font${top_mem name 9}${alignr}${top mem 9} %
Offline
conkyForecast is dead.
I have the temperature of Santiago inserted through weather.noaa.gov.
Their color does not please me. How S11 said, difficult to read.
From here: https://forums.bunsenlabs.org/viewtopic … 8007#p8007
I have you yet commented out a more modern form of the calendar is inserted. Maybe when you are not correct, the distances and you need to correct the still.
#pkill -xf "conky -c /media/DATEN/M5Lxqt/aleex5conkyrc" &
##Configuracion Conky
background yes
use_xft yes
xftfont Arial:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints below,skip_taskbar,skip_pager
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 0
maximum_width 200
draw_shades yes
draw_outline yes
draw_borders no
draw_graph_borders yes
default_color black
default_shade_color black
default_outline_color orange
#alignment top_right
alignment top_middle
gap_x -300 ### left | right
gap_y 45 ### up | down
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
TEXT
##################
## TIME ##
##################
${voffset 5}${font Arial:bold:size=9.5}${color4}TIME ${color8}${hr 2}
${voffset -4}${if_match ${time %l}<=9}${font RadioSpace:size=32}${color3}${alignc 2}${time %l:%M%p }${else}${if_match ${time %l}>=10}${font RadioSpace:size=32}${color3}${alignc 2}${time %l:%M%p}${endif}${endif}
${voffset -35}${font LiberationSans:size=8}${color4}${alignc 5}Temperature: ${color}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ SCEL temperature}°C
##################
## CALENDAR ##
##################
${voffset 5}${font Arial:bold:size=9.5}${color4}DATE ${color8}${hr 2}
#${alignc}${color0}${time %X}
#${alignc}${font LiberationSansBold:size=10}${color}SU MO ${color0}${time %b %Y}${color} FR SA ${font}
#${alignc}${font LiberationMono:size=9.5}${execpi 1800 LAR=`date +%-d`; ncal -bh | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color0}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${goto 37}/g'}${color}${font}
${voffset 4}${font LiberationSansBold:size=10}${color4}${alignc 5}${execpi 60 date +'%B %Y'}
${voffset 2}${font LiberationMono:size=9.5}${execpi 60 cal -h | sed '1d' | sed -e 's/'`date | awk '{print $3}'`'/\$\{color4}'`date | awk '{print $3}'`'\$\{color3}/' | sed 's/^/${offset 36}${color3}/'}
${font ariel:bold:size=8}SISTEMA ${hr 2}
${font ariel:normal:size=8}$sysname $kernel $alignr $machine
Host:$alignr$nodename
Uptime:$alignr$uptime
${font ariel:bold:size=8}PROCESADOR ${hr 2}
${font ariel:normal:size=8}${cpugraph cpu1}
CPU: ${cpu cpu1}% ${cpubar cpu1}
${font ariel:bold:size=8}MEMORIA ${hr 2}
${font ariel:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}
${font ariel:bold:size=8}DISCOS ${hr 2}
${font ariel:normal:size=8}Root $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}
${font ariel:bold:size=8}PROCESOS ${hr 2}
${font ariel:normal:size=8}${top_mem name 1}${alignr}${top mem 1} %
${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %
$font${top_mem name 6}${alignr}${top mem 6} %
$font${top_mem name 7}${alignr}${top mem 7} %
$font${top_mem name 8}${alignr}${top mem 8} %
$font${top_mem name 9}${alignr}${top mem 9} %
Happy New Year.
Last edited by unklar (2015-12-31 17:29:17)
Offline
aleex5, your conky was using colors: color4, color3, color8 etc. that haven't been defined, therefor it defaulted to white.
(also see here and here)
i know removed these extra colors:
##Configuracion Conky
background yes
use_xft yes
xftfont Ariel:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager,sticky
double_buffer yes
minimum_size 200 0
maximum_width 200
draw_shades yes
draw_outline yes
draw_borders no
draw_graph_borders yes
default_color black
default_shade_color black
default_outline_color orange
alignment top_right
gap_x 20 ### left | right
gap_y 20 ### up | down
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
TEXT
##################
## TIME ##
##################
${voffset 5}${font Arial:bold:size=9.5}TIME ${hr 2}
${voffset -4}${if_match ${time %l}<=9}${font RadioSpace:size=32}${alignc 2}${time %l:%M%p }${else}${if_match ${time %l}>=10}${font RadioSpace:size=32}${alignc 2}${time %l:%M%p}${endif}${endif}
${voffset -35}${font LiberationSans:size=8}${alignc 5}Sunrise${offset 1}${execi 600 conkyForecast --location=USAZ0082 --datatype=SR --startday=1}${offset 2}|${offset 2}Sunset${offset 1}${execi 600 conkyForecast --location=USAZ0082 --datatype=SS --startday=1}
##################
## CALENDAR ##
##################
${voffset 5}${font Arial:bold:size=9.5}DATE ${hr 2}
${voffset 4}${font LiberationSansBold:size=10}${alignc 7}${execpi 60 VinDSL_Cal= date +'%B${offset 6}%Y'}
${voffset 2}${font LiberationMono:size=9.5}${execpi 60 VinDSL_Cal= cal | sed '1d' | sed -e 's/'`date | awk '{print $3}'`'/'`date | awk '{print $3}'`'/' | sed 's/^/${offset 36}/'}
${font ariel:bold:size=8}SISTEMA ${hr 2}
${font ariel:normal:size=8}$sysname $kernel $alignr $machine
Host:$alignr$nodename
Uptime:$alignr$uptime
${font ariel:bold:size=8}PROCESADOR ${hr 2}
${font ariel:normal:size=8}${cpugraph cpu1}
CPU: ${cpu cpu1}% ${cpubar cpu1}
${font ariel:bold:size=8}MEMORIA ${hr 2}
${font ariel:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}
${font ariel:bold:size=8}DISCOS ${hr 2}
${font ariel:normal:size=8}Root $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}
${font ariel:bold:size=8}PROCESOS ${hr 2}
${font ariel:normal:size=8}${top_mem name 1}${alignr}${top mem 1} %
${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %
$font${top_mem name 6}${alignr}${top mem 6} %
$font${top_mem name 7}${alignr}${top mem 7} %
$font${top_mem name 8}${alignr}${top mem 8} %
$font${top_mem name 9}${alignr}${top mem 9} %
any other problems with this conky?
Last edited by ohnonot (2021-07-04 08:04:40)
Offline
Offline
Pages: 1