Topic: [SOLVED] Placing Conky next to Tint2?

Currently, I only use my conky to show info like CPU usage and acpi temp. I used to put my conky on the top (it was one line long) and set the windows to open so that it didn't cover the top 10 pixels. I'm wondering if there's a way for me to place the conky in the same area (bottom) as tint2, so that I don't need to set those margins.

I've found something on this subject, but I don't really understand what's going on.
http://crunchbanglinux.org/forums/topic … nelsolved/

Last edited by gareim (2010-07-21 02:05:16)

Re: [SOLVED] Placing Conky next to Tint2?

Do you want the conky and tint2 to overlap or just be side by side?

For side by side, heres some of the relevant settings

tint2rc:

panel_position = top right horizontal
panel_size = 70% 19

conkyrc:

minimum_size 400 0
alignment top_left
gap_x 0
gap_y 0

And here an example of what it would look like:

http://omploader.org/vNHpmdQ/screenshot-1279582612.png

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [SOLVED] Placing Conky next to Tint2?

Thanks so much, anonymous! Works perfectly! big_smile

Now I'm just wondering how do you set the background color for conky? I tried "own_window_colour #4F717D" but it didn't work (background is black still). Also, is it possible to set a maximum size for conky?

Re: [SOLVED] Placing Conky next to Tint2?

gareim wrote:

Thanks so much, anonymous! Works perfectly! big_smile

Now I'm just wondering how do you set the background color for conky? I tried "own_window_colour #4F717D" but it didn't work (background is black still). Also, is it possible to set a maximum size for conky?


I did my two conky with tint2 slightly different.

↓ ↓ ↓ ↓ ↓ ↓ that is an image to click on.
http://omploader.org/tNHpnaA

On the right: beside the time is ${uptime_short} and on the left conkyEmail showing the number of new emails in two accounts (0.0)

I have tint2 set to use 80% of my screen width and centered that leaves 10% od the screen width on each side that conky can use.

# Panel
panel_monitor = all
panel_position = bottom center horizontal
panel_size = 86% 22
panel_margin = 0 5
panel_padding = 2 0 0
panel_dock = 0
wm_menu = 0
panel_layer = bottom
panel_background_id = 0

colour background

own_window_colour
       If own_window_transparent no, set a specified background colour (defaults to black). Takes either a hex value (e.g. ffffff, note the lack of '#') or a valid RGB name (see /usr/lib/X11/rgb.txt)

crazy ... I run a test and see:

Conky: '/home/sector11/Conky/test' modified, reloading...
Conky: /home/sector11/Conky/test: 9: no such configuration: 'own_window_color'

I think we need a bug report!

Re: [SOLVED] Placing Conky next to Tint2?

@gareim - make sure own_window is set to yes.

@Sector11 - the setting is own_window_colour

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [SOLVED] Placing Conky next to Tint2?

anonymous wrote:

@gareim - make sure own_window is set to yes.

@Sector11 - the setting is own_window_colour

I had that "in conky" --->  tongue

It's just that when I'm typing I use my native language rules.  For as much as I tell #! to use Canadian English there are parts of the OS that INSIST on US English.  {sigh}

# Window
#own_window yes
own_window_transparent no
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_color #FFA07A

Nice catch though I had "#own_window yes" commented out.
But it didn't help, if you can get it to show a colo(u)r please show entire conky  big_smile

Re: [SOLVED] Placing Conky next to Tint2?

Did you try uncommenting "own_window"?

Heres the config for my bottom conky:

# Use Xft?
use_xft yes
xftfont terminus:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent no
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 1280 0

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders yes

# Stippled borders?
stippled_borders 0

# border width
border_width 0

# Default colors and also border colors
default_color ffffff
color2 535d6c
default_shade_color black
default_outline_color 222222
own_window_colour 222222

# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 0
gap_y 3

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer right

TEXT
${offset 5}${color2}CPU1${color} ${cpu cpu1}% ${goto 70}${cpubar cpu1 9,48} ${color2}CPU2${color} ${cpu cpu2}% ${goto 185}${cpubar cpu2 9,48} ${color2}MEM${color} ${mem}/${memmax} ${membar 9,48} ${color2}SWAP${color} ${swap}/${swapmax} ${swapbar 9,48} ${color2}DOWN${color} ${downspeedf eth0} KB/s ${downspeedgraph eth0 9,48} ${color2}UP${color} ${upspeedf eth0} KB/s ${upspeedgraph eth0 9,48} ${color2}SDA8${color} ${fs_used /home}/${fs_size /home} ${fs_bar 9,48 /home} ${if_existing /media/Linux/Downloads}${color2}SDB1${color} ${fs_used /media/Linux}/${fs_size /media/Linux} ${fs_bar 9,48 /media/Linux}${endif}

And here you can see what it looks like (up close):
http://omploader.org/vNHppcQ/2010-07-19--1279606759_1280x1024_scrot.png

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [SOLVED] Placing Conky next to Tint2?

Sector11 wrote:

It's just that when I'm typing I use my native language rules.  For as much as I tell #! to use Canadian English there are parts of the OS that INSIST on US English.  {sigh}

can't remember what app it is but it gives you a warning that "colour is depreciated, use color instead",  funny the dictionary doesn't say its depreciated.

- - - - - - - - Wiki Pages - - - - - - -
#! install guide           *autostart programs, modify the menu & keybindings
configuring Conky       *installing scripts

Re: [SOLVED] Placing Conky next to Tint2?

benj1 wrote:
Sector11 wrote:

It's just that when I'm typing I use my native language rules.  For as much as I tell #! to use Canadian English there are parts of the OS that INSIST on US English.  {sigh}

can't remember what app it is but it gives you a warning that "colour is depreciated, use color instead",  funny the dictionary doesn't say its depreciated.

lol That's good.  I'll keep "our" endings alive as long as I'm alive.  smile

colour, flavour, favour, neighbour... yes, "our" way. Please note the upcoming smilies:

It's "our" way "or" the highway!  There is NO other way to write that sentence - well, in English at least! big_smile
{exit stage left at a flat out run!} lol

Re: [SOLVED] Placing Conky next to Tint2?

anonymous wrote:

Did you try uncommenting "own_window"?

I was checking out the differences between your conky that does work and my test conky that didn't:

own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

You have that own_window_type override in there that I didn't have.

Also with that command the second one:

own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

is useless (italics are mine):

own_window_hints
    If own_window is yes, you may use these window manager hints to affect the way Conky displays. Notes: Use own_window_type desktop as another way to implement many of these hints implicitly. If you use own_window_type override, window manager hints have no meaning and are ignored.

So I learn something today, all in all a good day!

Re: [SOLVED] Placing Conky next to Tint2?

own_window_colour
       If own_window_transparent no, set a specified background colour (defaults to black). Takes either a hex value (e.g. ffffff, note the lack of '#') or a valid RGB name (see /usr/lib/X11/rgb.txt)

That's what I was doing wrong.. Thanks, Sector11 big_smile

Ok, last question, I swear! How can I set a maximum height for conky? It's taller than my tint2 right now. sad

Re: [SOLVED] Placing Conky next to Tint2?

gareim wrote:

own_window_colour
       If own_window_transparent no, set a specified background colour (defaults to black). Takes either a hex value (e.g. ffffff, note the lack of '#') or a valid RGB name (see /usr/lib/X11/rgb.txt)

That's what I was doing wrong.. Thanks, Sector11 big_smile

Ok, last question, I swear! How can I set a maximum height for conky? It's taller than my tint2 right now. sad

I don't like "last questions" it sounds ... so ... final!  So I'll assume (dangerous word that) that you'll ask at least one more ... sometime.  smile

Answer: I don't know.

maximum_width
    Maximum width of window

minimum_size
    Minimum size of window

minimum_size takes one or two variables:

minimum_size H W

But it's minimum now max.

Show is your conky file and a screenshot there might be a way to "fudge it".  big_smile

Re: [SOLVED] Placing Conky next to Tint2?

Here is my conky config: http://pastebin.com/sFAL8x0Y.

And here is what it looks like: http://omploader.org/vNHp0bw.

If I set tint2 to 25 pixels (up from 20), then it fits in perfectly with conky. I'd like for conky to be downsized to tint2's level, but if it's not possible, I can live with having tint2 slightly bigger. smile

Re: [SOLVED] Placing Conky next to Tint2?

I think it has to do with you putting two lines of stuff in your conky. If its only one line, Im sure the height will become less.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [SOLVED] Placing Conky next to Tint2?

anonymous wrote:

I think it has to do with you putting two lines of stuff in your conky. If its only one line, Im sure the height will become less.

The only way I can fit all the info without making tint2 too small is by using two lines. hmm What I don't like is that it looks like theres a lot of space conky is taking up at the top that it doesn't need to. At the bottom, there's no excess space. The weird thing is that if conky was placed at the top, the top would be fine, but the bottom of it would have excess. It's really weird.. But I guess I can live with a tint2 at 25 pixels. smile

Re: [SOLVED] Placing Conky next to Tint2?

@ gareim

I can barely read that on mine, tiny tiny tiny  smile

I see two options change font to:

xftfont Terminus:size=5

to make it smaller.

Or increase tint2 to 25 pixels.

Also you have a couple of errors:

use_spacer no

Response should be either: left, right or none

Change it to:

use_spacer none

and:

border_margin 0

to

#border_margin 0

border_margin depreciated

Or use one of these:

border_inner_margin
    Inner border margin in pixels (the margin between the border and text).

border_outer_margin
    Outer border margin in pixels (the margin between the border and the edge of the window).

Re: [SOLVED] Placing Conky next to Tint2?

@ gareim

I just had another thought.  Your conky - one line across the bottom and a vertical tint2 on one of the sides.

Just a thought mind you.

Re: [SOLVED] Placing Conky next to Tint2?

@Sector11

Thanks for the tips! My conky is mostly pieced together from multiple conkys that I find on the internet. tongue

I think I'll go with making it 25 pixels. Setting the font one size lower makes it extremely hard to read. I might try the tint2 on the side one day when I feel like mixing it up, but I'm a conservative person. Thanks for all the help! smile

Re: [SOLVED] Placing Conky next to Tint2?

gareim wrote:

@Sector11

Thanks for the tips!

More than welcome.  Enjoy.