#424 Conky ignores gap/position setting on startup

open
nobody
None
5
2014-08-25
2012-08-22
Anonymous
No

Conky started acting up in a strange way. When it starts, it ignores all gap or x/y position information, whether the information is on the command line or within .conkyrc. Instead of starting up positioned on the right side of my screen (gap_x 860), it is placed near the left side of the screen (suspiciously close to the 5/60 position that is the default in /etc/conky/conky.conf...but changing these figures has no effect). All other settings from .conkyrc are applied correctly.

In an even stranger twist, if the .conkyrc file is opened and saved while conky is running in the incorrect position, the .conkyrc file is reloaded and the output is moved to the correct position.

For the time being, I have worked around the issue by launching conky from a Bash script that (1) launches conky, (2) waits a few seconds, (3) copies .conkyrc to a temp file, and (4) moves the temp file to .conkyrc. This triggers reloading of the config file and the output is moved to the correct position. It's clumsy but it works for the time being.

I'm running Debian Sid/Unstable (amd64), Xfce 4.8.0.3, and Conky version 1.9.0-2. All other features work perfectly, including transparency.

Here is my .conkyrc (with comments omitted):

background yes

use_xft yes

xftfont Terminus:size=8

xftalpha 0.8

update_interval 1.0

total_run_times 0

own_window yes
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 80

double_buffer yes

minimum_size 1000 5

draw_shades yes

draw_outline no

draw_borders no

stippled_borders 8

border_width 1

default_color white
default_shade_color black
default_outline_color white

alignment top_left

gap_x 860
gap_y 1

no_buffers yes

uppercase no

cpu_avg_samples 2

top_cpu_separate false

net_avg_samples 2

override_utf8_locale no

use_spacer right

TEXT

${offset 0}${color }${time %a,}${color }${time %e%b%g} ${color #ddaa00}${time %Z} ${color }${time %H:%M:%S}
${offset 0}${color #ddaa00}uptime: ${color }$uptime
${offset 0}${color #ddaa00}kern:${color }$kernel
${offset 0}${color #ddaa00}cpu:${color } $cpu% ${color #ddaa00}temp: ${color }${hwmon 0 temp 1}C
${offset 0}${cpugraph cpu1 20,70 774400 ffbb00 -t} ${cpugraph cpu3 20,70 774400 ffbb00 -t}
${offset 0}${color #ddaa00}loadavg: ${color }$loadavg
${offset 0}${color #ddaa00}processes:${color }$processes ${color #ddaa00}running:${color }$running_processes

${offset 0}${color #ddaa00}mem:${color }$memperc% $mem/$memmax
${offset 0}${color #996600}${membar 3,100}
${offset 0}${color #ddaa00}swap: ${color }$swapperc% $swap/$swapmax
${offset 0}${color #996600}${swapbar 3,100}

${offset 0}${color #ddaa00}highest cpu:
${offset 0}${color #ffffff} ${top name 1}${top cpu 1}%
${offset 0}${color #bbbbbb} ${top name 2}${top cpu 2}%
${offset 0}${color #888888} ${top name 3}${top cpu 3}%
${offset 0}${color #666666} ${top name 4}${top cpu 4}%

${offset 0}${color #ddaa00}highest mem:
${offset 0}${color #ffffff} ${top_mem name 1}${top_mem mem 1}%
${offset 0}${color #bbbbbb} ${top_mem name 2}${top_mem mem 2}%
${offset 0}${color #888888} ${top_mem name 3}${top_mem mem 3}%
${offset 0}${color #666666} ${top_mem name 4}${top_mem mem 4}%

${offset 0}${color #ddaa00}storage free / total:
${offset 0}${color #aaaaaa}root: ${color }${fs_free /} / ${fs_size /}
${offset 0}${color #996600}${fs_bar 3,100 /}
${offset 0}${color #aaaaaa}home: ${color }${fs_free /home} / ${fs_size /home}
${offset 0}${color #996600}${fs_bar 3,100 /home}
${offset 0}${color #aaaaaa}data: ${color }${fs_free /data} / ${fs_size /data}
${offset 0}${color #996600}${fs_bar 3,100 /data}

${offset 0}${color #ddaa00}network: ${color }wlan0
${offset 0}${color #ddaa00}up: ${color }${upspeed wlan0}/s
${offset 0}${upspeedgraph wlan0 20,130 774400 ffbb00 -t }
${offset 0}${color #ddaa00}down: ${color }${downspeed wlan0}/s
${offset 0}${downspeedgraph wlan0 20,130 774400 ffbb00 -t }
----------------------------------------------------------
And here is the output of 'conky -v':

Conky 1.9.0 compiled Fri May 11 15:54:00 UTC 2012 for Linux 2.6.32-5-amd64 (x86_64)

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky

X11:
* Xdamage extension
* XDBE (double buffer extension)
* Xft
* ARGB visual

Music detection:
* Audacious
* MPD
* MOC
* XMMS2

General:
* math
* hddtemp
* portmon
* Curl
* RSS
* Weather (METAR)
* Weather (XOAP)
* wireless
* support for IBM/Lenovo notebooks
* nvidia
* eve-online
* config-output
* Imlib2
* apcupsd
* iostats
* ncurses
* Lua

Lua bindings:
* Cairo
* Imlib2

Thanks for the great work!

Discussion


  • Anonymous
    2012-08-22

    • summary: Conky ignores gap/position info on startup --> Conky ignores gap/position setting on startup
     
  • arclance
    arclance
    2012-08-22

    I have seen this happen as well.
    Sometimes when I start conky it does not show up where is supposed to.
    Sometimes it is a couple of pixels off and sometimes it is on the wrong side of the monitor.
    Restarting conky usually fixes the problem.

     
  • Sector11
    Sector11
    2012-08-24

    The user is creating a conky window 1000pixels wide:

    minimum_size 1000 5

    for a conky that is really no wider than:

    ${offset 0}${color #ddaa00}kern:${color }$kernel

    IMHO the ${offset 0} is not required either.