You are not logged in.

#1 2009-04-17 21:37:21

jimmy the saint
Member
Registered: 2009-04-10
Posts: 41

[solved] tint2 config "Background and Borders" explanation needed

I installed tint2 last night and set about configuring it this morning.  In the Background and Borders section there are three default entries.  After changing a few settings I thought I had it figured out that the first subsection dealt with the panel, the second with the focused task, and the third with unfocused tasks.  When I suggested that comments be added to the tint2rc file to indicate this I was informed that this is indeed not how it worked and that the program author can't explain how they interact, mainly due to the fact that English is not his first language.  He indicated that if I could figure out how they work and explain it sufficiently, the wiki would be updated.  I cannot, as I don't understand it myself. 

Is there anyone who has figured out how the three (or more) subsections work and can boil it down into simple, wiki-friendly words?

Thanks
JTS

Last edited by jimmy the saint (2009-04-19 01:41:20)

Offline

#2 2009-04-18 00:42:06

Tenken
Member
Registered: 2008-02-01
Posts: 126

Re: [solved] tint2 config "Background and Borders" explanation needed

The sections seem pretty self explanatory to me, what settings are you confused on?

Offline

#3 2009-04-18 09:39:26

palobo
Member
From: Leiria, Portugal
Registered: 2009-03-21
Posts: 68

Re: [solved] tint2 config "Background and Borders" explanation needed

Hi.

It's quite easy actually.

The tint2rc file is divided into 2 main sections (albeit virtual sections)

The first section is where you define three possible border/background styles for your panel.

Example of my Section 1:

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
rounded = 1
border_width = 0
background_color = #2d2d2d 70
border_color = #ffffff 18

rounded = 1
border_width = 0
background_color = #659fdb 100
border_color = #ffffff 50

rounded = 1
border_width = 0
background_color = #ffffff 5
border_color = #ffffff 70

The second section is where you define each individual aspect of your panel, inactive task, active task, systray and clock.

Example of my Section 2:

#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor = all
panel_position = bottom center
panel_size = 100% 30
panel_margin = 0 0
panel_padding = 0 0
font_shadow = 0
panel_background_id = 1

#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = single_monitor
taskbar_padding = 2 3 2
taskbar_background_id = 0

#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 0
task_text = 1
task_width = 120
task_centered = 1
task_padding = 10 3
task_font = sans 7
task_font_color = #ffffff 70
task_active_font_color = #101010 100
task_background_id = 0
task_active_background_id = 2

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

#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %H:%M
time1_font = sans 8
time2_format = %A %d %B
time2_font = sans 6
clock_font_color = #ffffff 76
clock_padding = 10 0
clock_background_id = 0

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

Now I call your attention to the following. In section 2, each individual config has something along the lines of:

...
panel_background_id = 1
...
taskbar_background_id = 0
...
task_active_background_id = 2

where 0 is fully transparent and 1 to 3 correspond to config 1,2 or 3 defined in the first section (border/background config.

Hope this helps make things a bit clearer

Cheers,
P.

Edit: Wow, having reread this I see it may a bit confusing. If in doubt... ask away...;)
Also have a read through this.

Last edited by palobo (2009-04-18 09:42:40)


" If it aint broke... Then you're not trying hard enough! "

Offline

#4 2009-04-18 21:47:34

thil77
Member
Registered: 2008-08-29
Posts: 52

Re: [solved] tint2 config "Background and Borders" explanation needed

@ Jimmy
I don't want to say "I can't explain" smile
I will try it again.

Your tinrc file start with background and border.
you are free to put 1, 2, 3, ... 10 background/border definition.
(the following tint2rc have just 2 background/border)

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
rounded = 1
border_width = 0
background_color = #282828 100
border_color = #000000 0

rounded = 1
border_width = 0
background_color = #f6b655 90
border_color = #cccccc 40

then each background definition is used on objects (panel, taskbar, task, clock, systray) with

panel_background_id = 1
taskbar_background_id = 0
task_background_id = 0
task_active_background_id = 2
systray_background_id = 0
clock_background_id = 0

identifier 0 applied full transparency, identifer 1 applied the first background, ...
here grey background is applied to panel.

panel_background_id = 0
taskbar_background_id = 0
task_background_id = 1
task_active_background_id = 2
systray_background_id = 0
clock_background_id = 0

here grey background is applied to inactive task. and the panel is transparent.

Offline

#5 2009-04-19 01:37:09

jimmy the saint
Member
Registered: 2009-04-10
Posts: 41

Re: [solved] tint2 config "Background and Borders" explanation needed

I just figured it out.  Thanks for the info guys.  I really need to get more sleep!

Last edited by jimmy the saint (2009-04-19 01:40:48)

Offline

Board footer

Powered by FluxBB