You are not logged in.

#1 2010-10-17 19:30:29

kmason
Member
From: Tempe, Arizona, USA
Registered: 2010-03-23
Posts: 256
Website

The latest update of conky broke my config.

Hey all, it appears that the syntax for conky changed or something without me knowing in todays update or something, because it looks completely off now, as opposed to what it used to look like before today:

thumb-scrot-12-18-48.png

Here is the two files that are affected:

left

######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1

imlib_cache_size 0
double_buffer yes
no_buffers yes

#####################
# - Text settings - #
#####################
use_xft yes
xftfont TitilliumText15L:size=7
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class left
own_window_colour 2A2A2A
#own_window_argb_visual yes
#own_window_argb_value 50
own_window yes
own_window_type normal
own_window_transparent no
own_window_hints undecorated,skip_taskbar,sticky,above

position top_left
gap_x 0
gap_y 44

minimum_size 182 756
maximum_width 182

default_bar_size 60 8

#########################
# - Graphics settings - #
#########################
draw_shades no

default_color dd0000

color0 b40000
color1 ffffff
color2 666666

TEXT
${voffset 4}${font TitilliumText15L:style=Ultra Bold:size=7}SYSTEM $stippled_hr${font}
${color0}${voffset 6}${font OpenLogos:size=19}B${font}${color}${goto 32}${voffset -14}Kernel:  ${alignr}${color2}${kernel}${color}
${goto 32}Uptime: ${alignr}${color2}${uptime}${color}
# |--CPU
${offset 1}${color0}${font Poky:size=16}P${font}${offset -19}${voffset 9}${cpubar cpu0 4,18}${color}${voffset -16}${goto 32}CPU: 
${goto 32}${font TitilliumText15L:style=Ultra Bold:size=7}${color1}${cpu cpu0}%${font} ${alignr}${font TitilliumText15L:style=Ultra Bold:size=7}${color1}${execi 30 acpi -t | awk '{print $4}'}°C${color}${font}  ${color2}${cpugraph cpu0 8,50 ffffff}${color}
# |--MEM
${color0}${font Poky:size=16}M${font}${color}${goto 32}${voffset -7}RAM: ${font TitilliumText15L:style=Ultra Bold:size=7}${color1}$memperc%${color}${font}
${offset 1}${voffset 2}${color0}${membar 4,18}${color}${goto 32}${voffset -2}F: ${font TitilliumText15L:style=Ultra Bold:size=7}${color2}${memeasyfree}${color}${font} U: ${font TitilliumText15L:style=Ultra Bold:size=7}${color2}${mem}${color}${font}
# |--CPU
# |--BATTERY
${color0}${font Poky:size=13}E${font}${color}${goto 32}${voffset -5}Battery: ${font TitilliumText15L:style=Ultra Bold:size=7}${color1}${battery_percent BAT0}%${color}${font} ${alignr}${color2}${battery_bar 8,60 BAT0}${color}
${voffset 4}${font TitilliumText15L:style=Ultra Bold:size=7}DATE $stippled_hr${font}
${voffset 4}${alignc}${font TitilliumText15L:style=Ultra Bold:size=10}${color1}${time %H:%M:%S}${color}${font}${voffset -8}
${voffset 8}${alignc}${time %d %B %Y}
${voffset -2}${color0}${font Poky:size=15}d${font}${color}${voffset -8}${font Inconsolata:size=7}${execpi 10800 DJS=`date +%-d`; cal | sed 's/^/${goto 32} /' | sed '1d' | sed s/" $DJS "/" "'${font Inconsolata:style=bold:size=7}${color1}'"$DJS"'${color}${font}${font Inconsolata:size=7}'" "/}${font}
${voffset 4}${font TitilliumText15L:style=Ultra Bold:size=7}MPD $stippled_hr${font}
${voffset 4}${color0}${font Musicelements:size=18}z${font}${color}${voffset -8}${goto 32}Status:${alignr}${color2}${mpd_status}${color}
${voffset 4}${goto 32}${color2}${mpd_artist}${color}
${goto 32}${color2}${mpd_album}${color}
${goto 32}${color2}${mpd_title}${color}
${voffset 4}${goto 32}${color2}${mpd_elapsed}/${mpd_length}${color} ${alignr}${color2}${mpd_bar 8,60}${color}
${voffset 4}${font TitilliumText15L:style=Ultra Bold:size=7}HD $stippled_hr${font}
${execpi 30 /usr/share/conky-colors/bin/conkyHD4}
${voffset 4}${font TitilliumText15L:style=Ultra Bold:size=7}NETWORK $stippled_hr${font}
# |--WLAN0
${if_up wlan0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 32}${voffset -6}Up: ${font TitilliumText15L:style=Ultra Bold:size=7}${color1}${upspeed wlan0}${color}${font} ${alignr}${color2}${upspeedgraph wlan0 8,60 ffffff}${color}
${goto 32}Total: ${font TitilliumText15L:style=Ultra Bold:size=7}${color2}${totalup wlan0}${color}${font}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 32}${voffset -6}Down: ${font TitilliumText15L:style=Ultra Bold:size=7}${color1}${downspeed wlan0}${color}${font} ${alignr}${color2}${downspeedgraph wlan0 8,60 ffffff}${color}
${goto 32}Total: ${font TitilliumText15L:style=Ultra Bold:size=7}${color2}${totaldown wlan0}${color}${font}
${voffset -2}${color0}${font Poky:size=14}Y${font}${color}${goto 32} ${voffset -2}Signal: ${font TitilliumText15L:style=Ultra Bold:size=7}${color1}${wireless_link_qual wlan0}%${color}${font} ${alignr}${color2}${wireless_link_bar 8,60 wlan0}${color}
${voffset 4}${color0}${font Poky:size=13}w${font}${color}${goto 32}${voffset -8}Local IP: ${alignr}${color2}${addr wlan0}${color}
${goto 32}Public IP: ${alignr}${color2}${execi 10800 /usr/share/conky-colors/bin/conkyIp}${color}
# |--ETH0
${else}${if_up eth0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 32}${voffset -6}Up: ${font TitilliumText15L:style=Ultra Bold:size=7}${color1}${upspeed eth0}${color}${font} ${alignr}${color2}${upspeedgraph eth0 8,60 ffffff}${color}
${goto 32}Total: ${font TitilliumText15L:style=Ultra Bold:size=7}${color2}${totalup eth0}${color}${font}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 32}${voffset -6}Down: ${font TitilliumText15L:style=Ultra Bold:size=7}${color1}${downspeed eth0}${color}${font} ${alignr}${color2}${downspeedgraph eth0 8,60 ffffff}${color}
${goto 32}Total: ${font TitilliumText15L:style=Ultra Bold:size=7}${color2}${totaldown eth0}${color}${font}
${voffset -2}${color0}${font Poky:size=13}w${font}${color}${goto 32}${voffset -4}Local IP: ${alignr}${color2}${addr eth0}${color}
${goto 32}Public IP: ${alignr}${color2}${execi 10800 /usr/share/conky-colors/bin/conkyIp}${color}
# |--PPP0
${else}${if_up ppp0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 32}${voffset -6}Up: ${font TitilliumText15L:style=Ultra Bold:size=7}${color1}${upspeed ppp0}${color}${font} ${alignr}${color2}${upspeedgraph ppp0 8,60 ffffff}${color}
${goto 32}Total: ${font TitilliumText15L:style=Ultra Bold:size=7}${color2}${totalup ppp0}${color}${font}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 32}${voffset -6}Down: ${font TitilliumText15L:style=Ultra Bold:size=7}${color1}${downspeed ppp0}${color}${font} ${alignr}${color2}${downspeedgraph ppp0 8,60 ffffff}${color}
${goto 32}Total: ${font TitilliumText15L:style=Ultra Bold:size=7}${color2}${totaldown ppp0}${color}${font}
${voffset -2}${color0}${font Poky:size=13}w${font}${color}${goto 32}${voffset -4}Local IP: ${alignr}${color2}${addr ppp0}${color}
${else}${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color}${goto 32}Network Unavailable${voffset 14}${endif}${endif}${endif}
${voffset 4}${font TitilliumText15L:style=Ultra Bold:size=7}GMAIL $stippled_hr${font}
${voffset -4}${color0}${font Martin Vogel's Symbols:size=19}B${goto 32}${font TitilliumText15L:style=Ultra Bold:size=7}${color0}${execpi 3600 /usr/share/conky-colors/bin/conkyEmail --servertype=IMAP --servername=imap.googlemail.com -u  -p  --ssl}${color}${font} new email(s)
${voffset 4}${font TitilliumText15L:style=Ultra Bold:size=7}WEATHER $stippled_hr${font}
# |--WLAN0
${if_up wlan0}
${execpi 10800 /usr/share/conky-colors/bin/conkyForecast --location=85283 -i -t /usr/share/conky-colors/templates/conkyForecast.template}
# |--ETH0
${else}${if_up eth0}
${execpi 10800 /usr/share/conky-colors/bin/conkyForecast --location=85283 -i -t /usr/share/conky-colors/templates/conkyForecast.template}
# |--PPP0
${else}${if_up ppp0}
${execpi 10800 /usr/share/conky-colors/bin/conkyForecast --location=85283 -i -t /usr/share/conky-colors/templates/conkyForecast.template}
${else}${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color}${goto 32}Weather Unavailable${voffset 14}${endif}${endif}${endif}

right

######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1

imlib_cache_size 0
double_buffer yes
no_buffers yes

#####################
# - Text settings - #
#####################
use_xft yes
xftfont TitilliumText15L:size=7
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class right
own_window_colour 2A2A2A
#own_window_argb_visual yes
#own_window_argb_value 50
own_window yes
own_window_type normal
own_window_transparent no
own_window_hints undecorated,skip_taskbar,sticky,above

position top_right
gap_x 0
gap_y 44

minimum_size 182 756
maximum_width 182

default_bar_size 60 8

#########################
# - Graphics settings - #
#########################
draw_shades no

default_color dd0000

color0 b40000
color1 ffffff
color2 666666

TEXT
${voffset 4}${font TitilliumText15L:style=Ultra Bold:size=7}PHOTO $stippled_hr${font}
${execi 240 /usr/share/conky-colors/bin/conkyPhotoRandom}${image /tmp/conkyPhoto.png -s 175x120 -p 4,20}
${voffset 124}${font TitilliumText15L:style=Ultra Bold:size=7}PACKAGES $stippled_hr${font}
${execpi 3600 paconky ~/.scripts/repos.paconky}
${execpi 3600 paconky ~/.scripts/aur.paconky}

If it helps, I am using it with compiz's widget layer, and also have the following rules set to it there: skip taskbar, skip pager, above, sticky, non movable, non resizable, non minimizable, non maximizable, as well as them having fixed position rules set in compiz too.

Offline

#2 2010-10-17 19:36:51

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Offline

#3 2010-10-17 21:03:47

kmason
Member
From: Tempe, Arizona, USA
Registered: 2010-03-23
Posts: 256
Website

Re: The latest update of conky broke my config.

Can you tell me how to fix it, or is it not known yet?  Would I have to wait for a fix/wait for a patch/revert to an older version?

Offline

#4 2010-10-17 21:06:58

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: The latest update of conky broke my config.

Most people roll back; check the bug reports over at the conky homepage, if yours hasn't been filed yet, please do so.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2010-10-24 13:36:59

jo-shva
Member
From: Sherman, TX USA
Registered: 2010-10-18
Posts: 133

Re: The latest update of conky broke my config.

It seems that conky-1.8.1 reads the script differently than before.  After playing around with it for a few hours and googling for even longer. With no answer to be found.  I happened upon the fix while taking the script apart (reverse engineering-gotta luv it!).

It now reads text code from the same line in the script, until an image is placed.  Any text that follows the image is placed on the line after, and so on...  Images act almost as separators for the lines in the script.  Individual lines for text now will produce odd screen placements and boxes, unless the new line is an image, or text  either proceeding or following the image.  I hope i am explaining this clearly.  Here is an example of my conky forecast template that worked fine before the update (notice each parameter is placed on its own line in the script. This no-longer works):
notice the line numbers in gedit

Conky_before.png

And the same conky forecast written for 1.8.1 (Now it works!  The parameters of the script are no-longer able to be paced on individual lines, until an image, then a new line begins):
Conky_after.png

Notice the line numbers!  You will have to adjust a few alignments ie..."voffset *".   All in all not that difficult once i figured it out.  I hope this helps! :-)

Here is a screenshot of my original conky forecast after the update to 1.8.1 (it made it a mess!).
CS_before.png

Here is after changing the script code(Fixed!!!)
CS_after.png

I hope this helps anyone thinking that conky-1.8.1 is broken-its just a reads differently :-)

Last edited by jo-shva (2010-10-24 14:47:07)


"Democracy is being allowed to vote for the candidate you dislike least." -- Robert Byrne
http://killhellokitty.deviantart.com/

Offline

Board footer

Powered by FluxBB