Topic: Overlay Conky on top of Tintpanel?[SOLVED]

At the moment i have a nice horizontal conky config that i really like, but I need acess to the volume, wirless, and battery applets shown on the tint2 panel. Instead of having it setup where they both take screen real estate, I'd like it if I could have the applets on the same line. I have tried to put them on the same line before asking, but tint2 blocks conky, or conky pushes down tint2.

Please enlighten me!

Last edited by FiniteStateMachine (2009-10-06 14:06:00)

just call me...
~FSM~

Re: Overlay Conky on top of Tintpanel?[SOLVED]

hi, tint2 is a panel a so, openbox treat it as such: nothing could override it. to put conky on the same line as tint2, you have to edit your conkyrc, look and find the line 'own_window_type' and set it as 'override' instead of desktop or normal. and so you should have something like that :
http://th02.deviantart.net/fs51/300W/i/2009/276/7/0/conky_ring_setup2_by_arpinux.png
1024x768

Re: Overlay Conky on top of Tintpanel?[SOLVED]

http://omploader.org/tMmhkYQ there's a pic i just posted elsewhere, it also shows my conky (the stats n bars in the bottom left) and my tint2 (everything else along the bottom).

my conky

# set to yes if you want Conky to be forked in the background
background yes

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Trebuchet MS:size=10
xftfont Sans:size=5

# Text alpha when using Xft
xftalpha 1

# Update interval in seconds
update_interval 1.0

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

own_window yes
own_window_transparent yes
#own_window_type override
own_window_type desktop
#own_window_type normal #use this if you want a nice shadow to appear around conky

# If own_window is yes, these window manager hints may be used
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 19 1050

# Maximum width
maximum_width 120

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline yes

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders no

# Stippled borders?
# stippled_borders 8

# border margins
# border_margin 1

# border width
# border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color FFFFFF

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

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

# 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

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

##############################################
##############################################

TEXT
${goto 0}${voffset 1023}${voffset 0}${color FFFFFF}${cpugraph cpu0 19,7 333333 ff0000}${offset 1}${memgraph 19,5 333333 65DAD2}${offset 1}${upspeedgraph normal wlan0 19,7 000044 8383BE}${downspeedgraph normal wlan0 19,7 440000 BE8383}
${voffset -19}${outlinecolor 000000}${offset 28}${color 65DAD2}${mem}${color FFFFFF}${swap}${voffset -8}${goto 32}${fs_free}${color e022fe}${voffset 2}${wireless_link_bar 4,35 wlan0}

my tint2

#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
rounded = 0
border_width = 1
background_color = #777777 10
border_color = #000000 40

rounded = 0
border_width = 1
background_color = #000000 50
border_color = #000000 60

rounded = 0
border_width = 1
background_color = #ffffff 20
border_color = #ffffff 90

#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor = all
panel_position = bottom right
panel_size = 90% 19
panel_margin = 0 0
panel_padding = 0 0 5
font_shadow = 0
panel_background_id = 1
#wm_menu = 1

#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = multi_desktop
#taskbar_mode = single_desktop
taskbar_padding = -1 -1 1
taskbar_background_id = 1

#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 1
task_text = 0
task_maximum_size = 144 15
task_centered = 1
task_padding = -1 3
task_font = sans 8
task_font_color = #111111 100
task_active_font_color = #ffffff 100
task_background_id = 1
task_active_background_id = 3

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray_padding = 0 0 0
systray_background_id = 2

#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %H:%M:%S %A %d %B
time1_font = sans 13
#time2_format = %A %d
#time2_font = sans 8
clock_font_color = #ffffff 100
clock_padding = 0 0
clock_background_id = 2
clock_lclick_command = xclock
clock_rclick_command = orage

#---------------------------------------------
# BATTERY
#---------------------------------------------
battery = 1
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
bat1_font = sans 7
bat2_font = sans 7
battery_font_color = #ffffff 100
battery_padding = 0 0
battery_background_id = 2

#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = close
mouse_right = none
mouse_scroll_up = toggle
mouse_scroll_down = iconify

so i've got them working in what sounds like something similar to what you're looking for.  though i'm not without issues myself... i had trouble getting it to appear starting in the correct place in the bottom left, found my way aound it after several goto and offset blunders, by starting it in top left, i'm guessing this was something to do with tint2 displacing it's intended possition.  a reasonable work around for a noob like me.  wink

educate yourself so you may educate others.DeNoob&UnBloat PCs!
the only free webhosting i use.
say "NO!" to a chemical lobotomy in your food
flattr me, thnx

Re: Overlay Conky on top of Tintpanel?[SOLVED]

I'm hoping you guys can help me out some more. You see i've tried both of your solutions (one as overide, one as desktop), even tried to have 2 configs (and had problems with that too). So I am hoping you guys can shine a little more light my way.

tint2rc, this basically creates a small panel to the right of my conky. I want the battery/wireless part on the far left of my screen though (so that the width should actually be 1280)

# Tint2 config file
# Generated by tintwizard (http://code.google.com/p/tintwizard/)

# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure

# To use this as default tint2 config: save as $HOME/.config/tint2/tint2rc

# Background definitions
# ID 1
rounded = 0
border_width = 0
background_color = #000000 100
border_color = #FFFFFF 100

# ID 2
rounded = 0
border_width = 0
background_color = #000000 100
border_color = #FFFFFF 100

# Panel
panel_monitor = all
panel_position = top left horizontal
panel_size = 290 20
panel_margin = 0 0
panel_padding = 0 0
panel_dock = 0
wm_menu = 0
panel_background_id = 0

# Taskbar
taskbar_mode = single_desktop
taskbar_padding = 0 0 0
taskbar_background_id = 0
#taskbar_active_background_id = 0

# Tasks
urgent_nb_of_blink = 7
task_icon = 1
task_text = 0
task_centered = 0
task_maximum_size = 20 32
task_padding = 0 0
task_background_id = 0
task_active_background_id = 0
task_icon_asb = 0 0 0
task_active_icon_asb = 0 -0 0

# Fonts
task_font = Sans 10
task_font_color = #FFFFFF 100
task_active_font_color = #FFFFFF 100
font_shadow = 0

# Systray
systray_padding = 0 0 0
systray_sort = right2left
systray_background_id = 0

# Tooltips
tooltip = 0
tooltip_padding = 0 0
tooltip_show_timeout = 0
tooltip_hide_timeout = 0
tooltip_background_id = 0
tooltip_font = Sans 12
tooltip_font_color = #FFFFFF 100

# Mouse
mouse_middle = none
mouse_right = none
mouse_scroll_up = none
mouse_scroll_down = none

# Battery
battery = 0
battery_low_status = 20
battery_low_cmd = notify-send "battery low"
bat1_font = Sans 12
bat2_font = Sans 12
battery_font_color = #FFFFFF 100
battery_padding = 0 0
battery_background_id = 0

# End of config

and
conky

# conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic/2047/conky-help/
#
# Enjoy! :)
##############################################
#  Settings
##############################################
    #avoid flicker
    double_buffer yes

    #own window to run simultanious 2 or more conkys
    own_window  yes
    own_window_transparent yes
    own_window_type override
    own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager

    #borders
    draw_borders no
    border_margin 1

    #shades
    draw_shades no

    #position
    gap_x 25
    gap_y 3
    alignment top_left

    #behaviour
    update_interval 1

    #colour
    default_color  FFFFFF

    #default_shade_color 000000
    own_window_colour 121314

    #font
    use_xft yes
    xftfont proggyclean:pixelsize=11

    #to prevent window from moving
    use_spacer right
    minimum_size 1280 0

    #mpd
    mpd_host localhost
    mpd_port 6600

    TEXT
    ${alignc}OS: ${color A0A0A0}CrunchBang9.04   |  ${time %a, %d %B} ${color A0A0A0}${time  %I:%M}  |  ${color} Up: ${color A0A0A0}${uptime_short}   |  ${color}Cpu: ${color A0A0A0}${cpu}%   ${color} ${color A0A0A0} |   ${color }Mem: ${color A0A0A0}$mem/$memmax – $memperc% ${color} ${color A0A0A0}    |   ${color }Bat: ${color A0A0A0}${font}${battery_percent}% ${battery_time} 

and ill put up a screenshot in a bit, i have to get to class, lol.
At any rate, the conky is perfect, really all that needs to be done is for my tint2panel to stretch the full way across the screen, and let the conky be visible.

I hope you guys can edit it and get it working, or give me suggestions on what to do!

just call me...
~FSM~

Re: Overlay Conky on top of Tintpanel?[SOLVED]

ok, just some things to do at first:
in your conkyrc, change:
    #position
    gap_x 25
    gap_y 3
    alignment top_left

by
    #position
    gap_x 0
    gap_y 0
    alignment top_right

and
minimum_size 1280 0
by
minimum_size 990 0
maximum_size 990

and
    TEXT
    ${alignc}OS: ${color A0A0A0}CrunchBang9.04
by
    TEXT
    ${goto 4}OS: ${color A0A0A0}CrunchBang9.04 >> so that you could adjust the rest of your conky with available space on the right..

about tint2, i didn't know about the "systray_sort = right2left" option ??? it doesn't work with my config.. maybe tint2 can not display systray on the left... ? i've never tries before (always my systray on right side..)

Last edited by arpinux (2009-10-05 14:02:00)

Re: Overlay Conky on top of Tintpanel?[SOLVED]

sys_tray sort is just for how you want the icons displayed, i tried using it, but it doesn't seem to have an effect on my display either. And i will try your suggestion right now.

just call me...
~FSM~

Re: Overlay Conky on top of Tintpanel?[SOLVED]

Ok, i did that but it has no effect on what I actually want to accomplish.
What i  would like to see, is my taskbar on  the left with my open windows, conky in the center, and my wireless/volume/battery icons on the right.
Heres a screenshot to show you what i mean

What i used before:
http://img134.imageshack.us/img134/7040/beforeh.th.jpg

And after your suggested changes:
http://img136.imageshack.us/img136/5175/suggestion.th.jpg
Notice that conky can't be seen, it is actually running directly under the tint2 panel though.

So what i'd like, if it helps you understand, is if I had exactly what is shown in the second screenshot, but with conky being visible. (And I think i understand now, that this is what you were setting me up for, and that  i just need the actual visibility part).

just call me...
~FSM~

Re: Overlay Conky on top of Tintpanel?[SOLVED]

ok i sew what you want: panel-conky-systray: to do that, you need:
tint2 on the left (size reduced to your needs)
conky on the middle:
    alignment top_middle
    gap_x 0
    gap_y 0

minimum_size 600 0
maximum_size 600

and systray on the left: either with another tint2 panel or with lxpanel reduce to tray-applet.
smile

Re: Overlay Conky on top of Tintpanel?[SOLVED]

do you have a guide on setting up  a second tint2 panel? I found one that invokes a script on startup which then calls another that starts 2 seperate tint2 files, but i couldnt seem to put them in the right directory. i'll try lxpanel if its painless.

just call me...
~FSM~

Re: Overlay Conky on top of Tintpanel?[SOLVED]

systray_sort = ascending/descending/left2right/right2left
is a option only availaable for the unstable tint2 in SVN.

if you want to open another tint2, add a new line in autostart.sh with
tint2 -c path_to_your_config_file

Re: Overlay Conky on top of Tintpanel?[SOLVED]

I got it sorted out, had my script in the wrong directory.
One problem though, it doesn't want to display the volume applet.
Anyone know how to enable it? I have Systray enabled, shouldnt that do it?

just call me...
~FSM~

Re: Overlay Conky on top of Tintpanel?[SOLVED]

it should do it.
witch software are you using ? volwheel, obmixer, ...

check your autostart.sh to see if you call the volume applet after tint2 is up.

(sleep 1s && volwheel) &

adding 1 or 2 second can help.

Re: Overlay Conky on top of Tintpanel?[SOLVED]

ok, that seems to have fixed that, but i noticed something

when i log in, it doesnt execute my script to get tint2 running(though it works fine if i execute it manually).

in autostart.sh i have
(sleep 1s && /home/mitchell/tint2start.sh) &

the file is located in ~/mitchell/tint2start.sh, maybe im just not putting it in proper syntax?

Thanks.

just call me...
~FSM~

Re: Overlay Conky on top of Tintpanel?[SOLVED]

check in the file tint2start.sh, if each command ended with &

Re: Overlay Conky on top of Tintpanel?[SOLVED]

I fixed it, just had to give it proper permissions (couldnt execute unless su), and had to adjust the sleep timers, so that the applets i wanted would be loaded, then tint2,  then conky. Now everything is hunky-dory. Thanks for the help and suggestions guys smile

just call me...
~FSM~