You are not logged in.

#1 2014-02-22 18:30:35

netpumber
Member
Registered: 2009-09-20
Posts: 134

Conky Window size bigger than needed

Hello here is a screenshot when i select (with mouse) the conky's window on my desktop

http://imageshack.com/a/img543/9457/t33a.jpg

As you can see the  size of the window is bigger than needed and i want to change it. I played with maximum_width and maximum_size in conkyrc but without any luck.

Here is some of the config code in conkyrc

# Conky settings #
background yes
update_interval 1
double_buffer yes
no_buffers yes
imlib_cache_size 10

# Window specifications #
gap_x 1600
gap_y 120
minimum_size 260
maximum_width 260
own_window yes
own_window_type dock  # other options are: override/normal/desktop/panel
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
#alignment middle_middle
#own_window_argb_visual yes
#own_window_argb_value 0

# Graphics settings #
draw_shades no
default_shade_color AAAAAA
draw_outline no
default_outline_color AAAAAA
draw_borders no
draw_graph_borders no
default_graph_size 26 80
show_graph_scale no
show_graph_range no

# Text settings #
use_xft yes
xftalpha 0
xftfont Droid Sans:size=8
text_buffer_size 256
override_utf8_locale yes

# Useful shortenings #
short_units yes
pad_percents 2
top_name_width 7

# Color scheme #
default_color 3A3A3A
color1 3A3A3A
color2 3A3A3A
color3 FFFFFF
color4 D56D6D
color5 6DB9D5
color6 888888

Any idea on how to make that background smaller ?
Thank you.

Moderator edit [ewaller] converted oversized image to a link

Last edited by ewaller (2014-02-22 19:03:35)

Offline

#2 2014-02-23 05:49:17

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: Conky Window size bigger than needed

specify both width and height in minimum_size

minimum_size 260 100 

and also make sure there are no trailing lines in the TEXT part.
See if that helps.

Last edited by easysid (2014-02-23 05:51:00)

Offline

#3 2014-02-25 17:34:57

netpumber
Member
Registered: 2009-09-20
Posts: 134

Re: Conky Window size bigger than needed

Hmm what are trailing lines ? Here is the rest of the conkyrc.

Offline

#4 2014-02-26 09:26:12

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: Conky Window size bigger than needed

trailing llines as in blank lines at the end. They do not show anything but conky still reads them as text and increases the window size. I do not think that is the issue here.
But with all the ${voffset } used, it is difficult to pinpoint if anything is causing it in the TEXT section.

Offline

#5 2014-02-26 14:59:33

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

Re: Conky Window size bigger than needed

I think I read somewhere that conky calculates the vertical size of the window from the number of lines in the TEXT section. Even if you use ${voffset}s to move some things back closer to the top it does not reduce the vertical size of the window.

It has occurred to me that maybe if I put more things on the same line in the TEXT section together with some ${goto}s and positive ${vofset}s to force things back to the left and to a new line it might reduce the vertical size but I haven’t actually tried that yet.

Might make the config file a challenge to read though.

[Edit] See my conky.conf below with all items that overlap on the same line also on the same line in the conky config. I also used \ to stop conky from increasing the height of the window for the blank lines. Could have used \ to split some of the concatenated lines but I sort of like the way the config looks now. Not as difficult to read as I thought it would be and it does shorten the conky window considerably. I still have maybe just two extra lines after the last item that I haven't been able to track down.

#
# /opt/Kairi/conky/conky.conf
#
use_xft yes
xftfont :size=8
default_color white
xftalpha 1
draw_shades no
draw_borders no
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_hints below
double_buffer yes
text_buffer_size 6200

alignment top_right
gap_x 5
gap_y 340
max_text_width 100
#minimum_size  335 335
maximum_width 190
update_interval 1

TEXT
${font DejaVu Sans:size=9:bold}${time %a}${font DejaVu Sans:size=18:bold}${time %l}${font :size=12:bold}:${time %M}${font :size=8}:${time %S}${font :size=5} ${time %Z}${voffset -16}${goto 100}${font :size=6}[ ${exec cat /proc/sys/kernel/random/entropy_avail} ]${font}${execi 180 nitrogen --set-zoom-fill /opt/Kairi/kripts/wallpaper-daylightBW.jpg}
\
\
\
${voffset -0}${font :size=10:bold:}___________________ CPU __${font}
${voffset -2}${goto 5}${cpugraph cpu1 22,190 ffffff 720000 100 -l -t}${voffset 5}${goto 7}${cpu cpu1}%${voffset -13}${goto 4}${alignr}${freq 1}MHz 
${voffset -2}${goto 5}${cpugraph cpu2 22,190 ffffff 720000 100 -l -t}${voffset 5}${goto 7}${cpu cpu2}%${voffset -13}${goto 4}${alignr}${freq 2}MHz 
${voffset -2}${goto 5}${cpugraph cpu3 22,190 ffffff 720000 100 -l -t}${voffset 5}${goto 7}${cpu cpu3}%${voffset -13}${goto 4}${alignr}${freq 3}MHz 
${voffset -2}${goto 5}${cpugraph cpu4 22,190 ffffff 720000 100 -l -t}${voffset 5}${goto 7}${cpu cpu4}%${voffset -13}${goto 4}${alignr}${freq 4}MHz 
\
\
\
${voffset  4}${font :size=10:bold:}__________________ RAM __${font}
${voffset  5}${goto 5}${color 720000}${membar 12}${color}${goto 7}${alignc}${mem} (${memperc}%) of ${memmax}
\
\
\
${voffset 2}${font :size=10:bold:}_____________ STORAGE __${font}
${voffset 3}${color 720000}${fs_bar 12,190 /boot}${color}${voffset -0}${goto 10}boot ${alignr}${fs_used /boot} (${fs_used_perc /boot}%) of ${fs_size /boot} 
${voffset 1}${color 720000}${fs_bar 12,190 /}${color}${voffset -0}${goto 10}root ${alignr}${fs_used /} (${fs_used_perc /}%) of ${fs_size /} 
${voffset 1}${color 720000}${fs_bar 12,190 /media/myStuff}${color}${voffset -0}${goto 10}data ${alignr}${fs_used /media/myStuff} (${fs_used_perc /media/myStuff}%) of ${fs_size /media/myStuff} 
${voffset -2}${goto 5}${diskiograph_read /dev/md1  25,93 ffffff 720000 15000 -l -t}${voffset 5}${goto 7}read${voffset -5}${goto 102}${diskiograph_write /dev/md1  25,93 ffffff 720000 15000 -l -t}${voffset -10}${goto 165}write
${voffset -1}${goto 5}${diskiograph_read /dev/sda1 06,93 ffffff 720000 15000 -l -t}${voffset 0}${goto 5}${goto 102}${diskiograph_write /dev/sda1 06,93 ffffff 720000 15000 -l -t}
${voffset -7}${goto 5}${diskiograph_read /dev/sdb1 06,93 ffffff 720000 15000 -l -t}${voffset 0}${goto 5}${goto 102}${diskiograph_write /dev/sdb1 06,93 ffffff 720000 15000 -l -t}
${voffset -7}${goto 5}${diskiograph_read /dev/sdc1 06,93 ffffff 720000 15000 -l -t}${voffset 0}${goto 5}${goto 102}${diskiograph_write /dev/sdc1 06,93 ffffff 720000 15000 -l -t}
\
\
\
${voffset -1}${font :size=10:bold:}_________ M5A99X EVO __${font}
${voffset  1}${goto  5}${font}${font :style=normal:size=6} CPU: ${font :style=bold:size=8}${platform it87.656 temp 1}${voffset -3}${font :style=normal:size=6}°C${voffset -2}${font :style=bold:size=8} | ${platform it87.656 fan 1}${voffset -03}${font :style=normal:size=6}rpm
${voffset  3}${goto 40}${font}${font :style=normal:size=6}MoBo: ${font :style=bold:size=8}${platform it87.656 temp 2}${voffset -3}${font :style=normal:size=6}°C${voffset -2}${font :style=bold:size=8} | ${platform it87.656 fan 3}${voffset -03}${font :style=normal:size=6}rpm
${voffset  3}${goto 75}${font}${font :style=normal:size=6} GPU: ${font :style=bold:size=8}${hwmon 3           temp 1}${voffset -3}${font :style=normal:size=6}°C${voffset -2}${font :style=bold:size=8} | ${hwmon 3           fan 1}${voffset -03}${font :style=normal:size=6}rpm
${voffset  7}${goto 15}${font :style=normal:size=7}\
+12V: ${font  :style=bold:size=7}${platform it87.656 in 0}${font :style=normal:size=7}V | \
+5V: ${font   :style=bold:size=7}${platform it87.656 in 1}${font :style=normal:size=7}V | \
Vcore: ${font :style=bold:size=7}${platform it87.656 in 2}${font :style=normal:size=7}V
${voffset 0}${goto 13}${font :style=normal:size=7}\
+3.3V: ${font :style=bold:size=7}${platform it87.656 in 3}${font :style=normal:size=7}V | \
# in4: ${font :style=bold:size=7}${platform it87.656 in 4}${font :style=normal:size=7}V   
# in5: ${font :style=bold:size=7}${platform it87.656 in 5}${font :style=normal:size=7}V   
# in6: ${font :style=bold:size=7}${platform it87.656 in 6}${font :style=normal:size=7}V   
3VSB: ${font  :style=bold:size=7}${platform it87.656 in 7}${font :style=normal:size=7}V | \
Vbat: ${font  :style=bold:size=7}${platform it87.656 in 8}${font :style=normal:size=7}V
\
\
\
${voffset 3}${font :size=10:bold:}_______________ SYSTEM __${font}
${voffset 2}${sysname} ${kernel} ${alignr} ${machine}
Host:${alignr}${nodename}
Uptime:${alignr}${uptime}
${voffset -02}${loadgraph 25,190 ffffff 720000 4 -l -t}${goto 5}${voffset 10}${font :size=7}${alignc}1min: ${loadavg 1}   5min: ${loadavg 2}    15min: ${loadavg 3}${font}
\
\
\
${voffset -17}${font :size=10:bold:}___________ PROCESSES __${font}
${voffset -02}${goto 35}${font :size=6}CPU %${goto 135}RAM %${font :size=7}${voffset -03}
${top name  1}${goto 65}${top cpu 1}${goto 100}${top_mem name 1}${goto 165}${top_mem mem 1}
${top name  2}${goto 65}${top cpu 2}${goto 100}${top_mem name 2}${goto 165}${top_mem mem 2}
${top name  3}${goto 65}${top cpu 3}${goto 100}${top_mem name 3}${goto 165}${top_mem mem 3}
${top name  4}${goto 65}${top cpu 4}${goto 100}${top_mem name 4}${goto 165}${top_mem mem 4}
${top name  5}${goto 65}${top cpu 5}${goto 100}${top_mem name 5}${goto 165}${top_mem mem 5}
\
\
\
${voffset  2}${font :size=10:bold:}_____________ NETWORK __${font}
${voffset  2}External: ${alignr} ${execi 86400 wget -q -O /dev/stdout [url]http://checkip.dyndns.org/[/url] | cut -d : -f 2- | cut -d \< -f -1}
${voffset -0}Internal: ${alignr} ${addr enp2s0}
${voffset -2}${downspeedgraph enp2s0 25,93 ffffff 720000 800 -l -t} ${upspeedgraph enp2s0 25,93 ffffff 720000 40 -l -t}${voffset 5}${goto 7}Down:${totaldown enp2s0}${goto 140}${upspeed enp2s0}/s${voffset 12}${goto 40}${downspeed enp2s0}/s${voffset -25}${goto 125}${totalup enp2s0}:Up
${voffset -2}${downspeedgraph enp2s0 25,93 ffffff 720000 080 -l -t} ${upspeedgraph enp2s0 25,93 ffffff 720000 04 -l -t}${voffset 5}${goto 7}${font  :size=6}10x zoom${voffset -15}${goto 150}10x zoom\
\
\
\
${font :size=10:bold:}____ REMOVABLE STORAGE __${font}
${if_existing /media/myRecordings/}\
${goto 5}${voffset 1}${diskiograph_write /dev/sde1 12,190 ffffff 720000 15000 -l -t}\
${goto 5}${color 720000}${fs_bar 12,190 /media/myRecordings/}\
${goto 10}${color white}HDTV ${fs_used /media/myRecordings/} (${fs_used_perc /media/myRecordings/}%) of ${fs_size /media/myRecordings/}\
${endif}
\
${if_existing /tmp/src/Kairi/}\
${voffset 1}${color 720000}${fs_bar 12,190 /tmp/src/Kairi/}\
${goto 10}${color white}Kairi ${fs_used /tmp/src/Kairi/} (${fs_used_perc /tmp/src/Kairi/}%) of ${fs_size /tmp/src/Kairi/}\
${endif}
\
${if_existing /tmp/LUKS_HDD/}\
${voffset 1}${color 720000}${fs_bar 12,190 /tmp/LUKS_HDD/}\
${goto 10}${color white}HDD ${fs_used /tmp/LUKS_HDD/} (${fs_used_perc /tmp/LUKS_HDD/}%) of ${fs_size /tmp/LUKS_HDD/}\
${endif}
\
${if_existing /tmp/LUKS_PASSPORT/}\
${voffset 1}${color 720000}${fs_bar 12,190 /tmp/LUKS_PASSPORT/}\
${goto 10}${color white}PASSPORT ${fs_used /tmp/LUKS_PASSPORT/} (${fs_used_perc /tmp/LUKS_PASSPORT/}%) of ${fs_size /tmp/LUKS_PASSPORT/}\
${endif}

Last edited by KairiTech (2014-03-16 16:07:29)

Offline

Board footer

Powered by FluxBB