You are not logged in.

#1 2010-08-18 14:00:07

shak
Member
Registered: 2009-03-16
Posts: 405

tint2 question how to use 2 panels

Hi again!

THis might seem a noobish question , but i would like to put the system tray with the clock on the top of the desktop and at the bottom the tasks .

How do i do that ? Do i need to make two tint2 configuration files ?

Thanks !

Offline

#2 2010-08-18 14:53:33

shemz
Member
Registered: 2010-04-23
Posts: 135

Re: tint2 question how to use 2 panels

From "man tint2"

tint2 -c <config_file>

But I am not sure if you can disable taskbar in one of the panels. A work around would be to keep the background ids of the taskbar, tasks and the panel same, with all text and icons disabled, thus making it look invisible. Post back if you find another way to do so.

Last edited by shemz (2010-08-18 14:55:29)

Offline

#3 2010-08-18 14:55:41

tum
Member
Registered: 2010-05-18
Posts: 40

Re: tint2 question how to use 2 panels

You can start two tint2 panels :

tint2 -c /path_to_config_file &

In first config leave tray and clock , in second tasks only .

Offline

#4 2010-08-18 15:55:13

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: tint2 question how to use 2 panels

Nearly the same situation. I did split up the panel int two parts, one of them dedicated to clock and tray which I wanted to show with different colors on my display. I solved this with these two configuration files.

tint2rc, the main panel display:

# 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

# Background definitions
# ID 1
rounded = 7
border_width = 0
background_color = #000000 00
border_color = #ffffff 18

# ID 2
rounded = 5
border_width = 2
background_color = #ffffff 60
border_color = #00007f 60

# ID 3
rounded = 5
border_width = 1
background_color = #303030 50
border_color = #5f5f00 50

# Panel
panel_monitor = all
panel_position = bottom left
panel_size = 88% 30
panel_margin = 0 0
panel_padding = 7 0 7
panel_dock = 0
wm_menu = 0
panel_layer = top
panel_background_id = 1

# Panel Autohide
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 2
autohide_height = 4
strut_policy = follow_size

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

# Tasks
urgent_nb_of_blink = 8
task_icon = 1
task_text = 1
task_centered = 1
task_maximum_size = 400 35
task_padding = 6 3
task_background_id = 3
task_active_background_id = 2
task_urgent_background_id = 2
task_iconified_background_id = 3

# Task Icons
task_icon_asb = 70 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 70 0 0

# Fonts
task_font = sans 8
task_font_color = #ffff00 70
task_active_font_color = #00007f 85
task_urgent_font_color = #00007f 85
task_iconified_font_color = #ffff00 70
font_shadow = 0

# System Tray
systray = 1
systray_padding = 0 4 5
systray_sort = ascending
#systray_sort = right2left
systray_background_id = 0
systray_icon_size = 0
systray_icon_asb = 100 0 0

# Clock
#time1_format = %H:%M:%S
#time1_font = sans bold 8
#time2_format = %A %d. %B
#time2_font = sans bold 6
#clock_font_color = #ffff00 100
#clock_padding = 1 0
#clock_background_id = 0
#clock_lclick_command = plan -S

# Tooltips
tooltip = 0
tooltip_padding = 2 2
tooltip_show_timeout = 0.7
tooltip_hide_timeout = 0.3
tooltip_background_id = 1
tooltip_font = sans 10
tooltip_font_color = #OOOOOO 80

# Mouse
#mouse_left = toggle_iconify
mouse_middle = maximize_restore
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify

# Battery
#battery = 0
#battery_low_status = 10
#battery_low_cmd = notify-send "battery low"
#battery_hide = 98
#bat1_font = sans 8
#bat2_font = sans 6
#battery_font_color = #ffffff 76
#battery_padding = 1 0
#battery_background_id = 0

# End of config

tint2rc-clock for the clock and trayer part:

# 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

# Background definitions
# ID 1
rounded = 7
border_width = 0
background_color = #000000 40
border_color = #ffffff 18

# ID 2
rounded = 5
border_width = 2
background_color = #ffffff 80
border_color = #00007f 30

# ID 3
rounded = 5
border_width = 1
background_color = #7f7f7f 80
border_color = #0f0f0f 30

# Panel
panel_monitor = all
panel_position = bottom right
panel_size = 12% 30
panel_margin = 0 0
panel_padding = 7 0 7
panel_dock = 0
wm_menu = 0
panel_layer = bottom
panel_background_id = 1

# Panel Autohide
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 2
autohide_height = 4
strut_policy = follow_size

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

# Tasks
#urgent_nb_of_blink = 8
#task_icon = 1
#task_text = 1
#task_centered = 1
#task_maximum_size = 400 35
#task_padding = 6 3
#task_background_id = 3
#task_active_background_id = 2
#task_urgent_background_id = 2
#task_iconified_background_id = 3

# Task Icons
#task_icon_asb = 70 0 0
#task_active_icon_asb = 100 0 0
#task_urgent_icon_asb = 100 0 0
#task_iconified_icon_asb = 70 0 0

# Fonts
#task_font = sans 8
#task_font_color = #ffff00 70
#task_active_font_color = #00007f 85
#task_urgent_font_color = #00007f 85
#task_iconified_font_color = #ffff00 70
#font_shadow = 0

# System Tray
#systray = 1
#systray_padding = 0 4 5
#systray_sort = ascending
#systray_sort = right2left
#systray_background_id = 0
#systray_icon_size = 0
#systray_icon_asb = 100 0 0

# Clock
time1_format = %H:%M:%S
time1_font = sans bold 8
time2_format = %A %d. %B
time2_font = sans bold 6
clock_font_color = #ffff00 100
clock_padding = 10 0
clock_background_id = 0
clock_lclick_command = plan -S
clock_rclick_command = xclock

# Tooltips
tooltip = 0
tooltip_padding = 2 2
tooltip_show_timeout = 0.7
tooltip_hide_timeout = 0.3
tooltip_background_id = 1
tooltip_font = sans 10
tooltip_font_color = #OOOOOO 80

# Mouse
#mouse_middle = toggle_iconify
#mouse_right = close
#mouse_scroll_up = toggle
#mouse_scroll_down = iconify

# Battery
#battery = 0
#battery_low_status = 10
#battery_low_cmd = notify-send "battery low"
#battery_hide = 98
#bat1_font = sans 8
#bat2_font = sans 6
#battery_font_color = #ffffff 76
#battery_padding = 1 0
#battery_background_id = 0

# End of config

This is run from my openbox autostart.sh as

# Panel
( sleep 3 && tint2 ) &
( sleep 3 && tint2 -c /home/bp/.config/tint2/tint2rc-clock ) &

To know or not to know ...
... the questions remain forever.

Offline

Board footer

Powered by FluxBB