You are not logged in.

#1 2015-12-30 16:07:03

aleex5
Member
From: Chile
Registered: 2015-12-28
Posts: 19

[SOLVED] It looks bad conky

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

vindsl-time-date-15-nov-2010.png

but in my case it looks bad

f09f5b6c275d7300502974d4d5c41eeeo.jpg

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

#2 2015-12-30 16:26:42

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,438

Re: [SOLVED] It looks bad conky

Have a look at the conky calendar thread - your issues may have already been addressed.


You must unlearn what you have learned.
    -- yoda

Offline

#3 2015-12-30 19:27:26

aleex5
Member
From: Chile
Registered: 2015-12-28
Posts: 19

Re: [SOLVED] It looks bad conky

PackRat wrote:

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

#4 2015-12-30 19:40:37

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,769

Re: [SOLVED] It looks bad conky

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}
OJO:

  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 :
2015_12_30_15_41_29_Scrot11.jpg

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

2015_12_30_15_29_22_Scrot11.jpg

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

2015_12_30_15_22_03_Scrot11.jpg

Using default: black with orange shades gives a chiselled effect but not very readable:
2015_12_30_15_29_22_Scrot11.jpg

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

2015_12_30_15_31_09_Scrot11.jpg

Play with those and see what happens.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#5 2015-12-30 20:39:51

aleex5
Member
From: Chile
Registered: 2015-12-28
Posts: 19

Re: [SOLVED] It looks bad conky

the colors are not a problem
the problem is that when you add the code to the calendar, everything looks bad

f09f5b6c275d7300502974d4d5c41eeeo.jpg

without the code of the calendar, Conky looks normal

9f5f9564d7fb9421fe8a2807b5ce7528o.jpg

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

#6 2015-12-31 09:07:09

ohnonot
...again
Registered: 2015-09-29
Posts: 5,554

Re: [SOLVED] It looks bad conky

please show us the complete conky config. the one that is causing problems, in its completeness.


Give to COVAX! Here or here. (explanation)

Offline

#7 2015-12-31 09:23:16

aleex5
Member
From: Chile
Registered: 2015-12-28
Posts: 19

Re: [SOLVED] It looks bad conky

ohnonot wrote:

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

#8 2015-12-31 17:28:08

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 1,549

Re: [SOLVED] It looks bad conky

conkyForecast is dead.
I have the temperature of Santiago inserted through weather.noaa.gov.
I7IteyRo
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.  big_smile

Last edited by unklar (2015-12-31 17:29:17)

Offline

#9 2015-12-31 22:22:29

ohnonot
...again
Registered: 2015-09-29
Posts: 5,554

Re: [SOLVED] It looks bad conky

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)


Give to COVAX! Here or here. (explanation)

Offline

#10 2016-01-01 14:16:42

aleex5
Member
From: Chile
Registered: 2015-12-28
Posts: 19

Re: [SOLVED] It looks bad conky

Whether it is solved, thank you all for the help
and above all I thank you @sector11
He has been helping me and teaching by PM
I leave a picture of how it looks now conky

811eb48adbb27b6b4376097c577cd846o.jpg

Last edited by aleex5 (2016-01-01 14:20:01)

Offline

Board footer

Powered by FluxBB