Conky size

Forum rules
Before you post please read this

Conky size

Postby Apocalypse_666 on Wed Sep 16, 2009 9:57 am

Dear everyone,

I have a problem of an aesthetic nature: I'm trying to use a conkyrc that was originally designed for a 1024x768 monitor, but my own monitor measures 1440x900. Here's what it's supposed to look like: [url="http://3.bp.blogspot.com/_UqUwVPikChs/Sq9OjztiXyI/AAAAAAAAKi0/9cPYMDjRIko/s1600-h/cherries.jpg"]image[/url].
I've added a screenshot of how it looks on my desktop as an attachment to this post (the borders are on purpose, to make the problem more clear).
All I want to do is move the entire package to the left bottom corner. The argument alignment bottom_left unfortunately doesn't work, as the conky window takes up all the left side of my screen, from top to bottom.
I've tried messing around with minimum_size, voffsett and everything else I could think of, but to no avail.
So, is there anybody out there that knows how to cut of this bottom part so I can put the entire window in that left bottom corner??

Here's my .conkyrc:
Code: Select all
# Cherries
# by londonali1010

background no
update_interval 1
total_run_times 0
own_window yes
own_window_transparent yes
own_window_class Conky
own_window_hints undecorate,sticky,skip_pager,skip_taskbar,below
double_buffer yes
no_buffers yes
text_buffer_size 2048
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
draw_shades no
draw_outline no
draw_borders yes
draw_graph_borders yes
use_spacer none
minimum_size 0 0
alignment bottom_left
gap_x 12
gap_y 12
uppercase no
use_xft yes
xftfont DejaVu Sans:size=12
xftalpha 0.8
default_color d9b2ad

TEXT
${voffset 300}${font DejaVu Sans:size=24}${time %A}, ${time %d} ${time %B} ${time %Y}${font}
${battery_bar 8,720 BAT1}
${voffset -8}${fs_bar 8,720 /}
${voffset -8}${goto 400}${cpubar 8,310 cpu}
${voffset -8}${goto 400}${font saxMono:size=9}${top pid 1}${font DejaVu Sans:size=8}${voffset -1} ${top name 1}${voffset 1}${goto 660}${font saxMono:size=9}${top cpu 1}
${goto 400}${font saxMono:size=9}${top pid 2}${font DejaVu Sans:size=8}${voffset -1} ${top name 2}${voffset 1}${goto 650}${font saxMono:size=9}${top cpu 2}
${goto 400}${font saxMono:size=9}${top pid 3}${font DejaVu Sans:size=8}${voffset -1} ${top name 3}${voffset 1}${goto 640}${font saxMono:size=9}${top cpu 3}
${goto 400}${font saxMono:size=9}${top pid 4}${font DejaVu Sans:size=8}${voffset -1} ${top name 4}${voffset 1}${goto 620}${font saxMono:size=9}${top cpu 4}
${goto 400}${membar 8, 260}
${goto 400}${font saxMono:size=9}${top_mem pid 1}${font DejaVu Sans:size=8}${voffset -1} ${top_mem name 1}${voffset 1}${goto 620}${font saxMono:size=9}${top_mem mem 1}
${goto 400}${font saxMono:size=9}${top_mem pid 2}${font DejaVu Sans:size=8}${voffset -1} ${top_mem name 2}${voffset 1}${goto 630}${font saxMono:size=9}${top_mem mem 2}
${goto 400}${font saxMono:size=9}${top_mem pid 3}${font DejaVu Sans:size=8}${voffset -1} ${top_mem name 3}${voffset 1}${goto 640}${font saxMono:size=9}${top_mem mem 3}
${goto 400}${font saxMono:size=9}${top_mem pid 4}${font DejaVu Sans:size=8}${voffset -1} ${top_mem name 4}${voffset 1}${goto 650}${font saxMono:size=9}${top_mem mem 4}${font}
${voffset -90}${font route3:size=160}${time %k}${font route3:size=100}${voffset -80}${goto 230}${time %M}${font}
${voffset -500}${execpi 360 conkyForecast --location=Noneofyoubusiness --template=/usr/share/conkyforecast/conkyForecast.template}0
Attachments
Screenshot1.jpg
Screenshot1.jpg (140.77 KiB) Viewed 996 times
Apocalypse_666
Level 1
Level 1
 
Posts: 3
Joined: Wed Sep 16, 2009 9:28 am

Linux Mint is funded by ads and donations.
 

Re: Conky size

Postby Zwopper on Wed Sep 16, 2009 10:05 am

The answer lies in the "gap x & y" values
Here are a few pointers.
Good luck!
Image
My artwork at deviantART | My Tweet
CREA DIEM!
Lenovo E320 | 8GB | 512GB Samsung 840 PRO - SSD | Ubuntu 14.04
User avatar
Zwopper
Level 10
Level 10
 
Posts: 3101
Joined: Fri Nov 30, 2007 12:20 pm
Location: Deep in the Swedish woods

Re: Conky size

Postby Apocalypse_666 on Wed Sep 16, 2009 10:24 am

Thanks for the quick response!
However, I've messed around with the gap settings, and though the gap_x will move the screen to the right, gap_y doesn't work, because conky takes up all the space from top to bottom, so it can't move down!
Apocalypse_666
Level 1
Level 1
 
Posts: 3
Joined: Wed Sep 16, 2009 9:28 am

Re: Conky size

Postby optimize me on Wed Sep 16, 2009 10:50 am

That's why it has that gap there is because of all the voffset commands. Any time you move a line up or down, Conky still uses the space it would if the line were still there. Consequently, there ends up being a big blank space at the bottom where the line used to be. To show this, take an empty spot on your desktop and click & drag to start making a selection box. You'll notice as you drag towards Conky that there's a big spot underneath that doesn't highlight. (See example here.)

You'll either need to put decoration/borders back on it long enough to make a compiz window rule and/or change the sizes of the fonts and see how that works out for you.

EDIT: Looking more closely at your config file, I see you have a voffset of -500 to put your conkyforecast where you want it. That's the source of your headache. Ditch that. Put forecast into its' own config, leave the main conky in its' own, give each one it's own gap_x and gap_y settings, and have them both execute at startup with a script.

Or, since you have it on top anyway, just move the conkyforecast lines to the top of the TEXT section, getting rid of the huge voffset. Either way should work. Forget the compiz window rule thing.
AMD Phenom II X6 1045T 2.8GHz 8GB DDR3 RAM ATI Radeon HD6970
User avatar
optimize me
Level 5
Level 5
 
Posts: 639
Joined: Wed Jun 03, 2009 5:25 pm

Re: Conky size

Postby Apocalypse_666 on Thu Sep 17, 2009 5:39 am

Allright! I've found out there's a lot of voffsets in my conkyforecast template that mess everything up. I'll try and fix that, and get back when I've figured it out!
Apocalypse_666
Level 1
Level 1
 
Posts: 3
Joined: Wed Sep 16, 2009 9:28 am


Return to Compiz, Conky, Docks, & Widgets

Who is online

Users browsing this forum: No registered users and 2 guests