|
|
The first time you run tint2, it will create the config file in $HOME/.config/tint2/tint2rc . If you upgraded from tint 0.6 , no worries, tint2 is backward compatible with the old config file. You can customize tint2rc or specify another file on the command line with -c option. eg. : tint2 -c $HOME/tint2.conf Configuration marked as SVN ONLY are not yet supported and could change in the next stable release. Background and bordertint2rc config file starts with background option.
- rounded = number_of_pixels : How rounded the borders are
- background_color = color opacity
- opacity = 0 to get background transparency
- border_color = color opacity (0 to 100)
- opacity = 0 to get border transparency
you are free to put 1, 2, 3... background
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 40tint2 automatically identifies each background with a number (1, 2, ...).
then you can applied background 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 = 0identifier 0 applied full transparency, identifer 1 applied the first background...
Panel- panel_monitor = monitor (all, 1, 2, ...) Which monitor tint2 draws the panel on
- the first monitor is 1
- use panel_monitor = all to get one panel per monitor (unless it's included into another one)
- panel_position = vertical_position horizontal_position orientation
- value for vertical_position : bottom, top, center
- value for horizontal_position : left, right, center
- value for orientation : horizontal, vertical
- panel_size = width height
- width = 0 to get full monitor width
- Use % to adjust the panel size to monitor size.
Example:
#The panel's width is 94% the size of the monitor
panel_size = 94% 30 - panel_margin = horizontal_margin vertical_margin
- horizontal_margin = 0 to get full monitor width
- panel_padding = horizontal_left_right_padding vertical_padding horizontal_spacing
- font_shadow = boolean (0 or 1)
- panel_background_id = integer : Which background to use
- wm_menu = boolean (0 or 1) : Display WM menu when right clic in an empty place of the panel
- panel_dock = boolean (0 or 1) SVN ONLY : Put tint2 into the window managers dock. For the openbox window manager I can advise to use also a modifier for the moveButton option, otherwise the mouse click is not forwarded to tint2 (in ~/.config/openbox/rc.xml). The drag'n'drop functionality will not work if tint2 is put into the dock.
Taskbar (pager like capability)- taskbar_mode = single_desktop or multi_desktop
- taskbar_mode = single_desktop : Show one(1) taskbar (current desktop)
- taskbar_mode = multi_desktop : Pager like capability. Show one(1) taskbar per desktop
- You can drag-and-drop task between desktops`
- And also click on an empty taskbar to switch desktops`
- taskbar_padding = horizontal_left_right_padding vertical_padding horizontal_spacing
- taskbar_background_id = integer : Which background to use
- taskbar_active_background_id = integer SVN ONLY : Which background to use for current desktop.
Task- urgent_nb_of_blink = integer : Number of blink on 'get attention' event
- task_icon = boolean (0 or 1) : Display task icon or not
- task_text = boolean (0 or 1) : Display task text or not
- task_centered = boolean (0 or 1) : Task name centered or not
- task_maximum_size = width height
- width is used with horizontal panel. width = 0 to get full taskbar width
- height is used with vertical panel
- task_padding = horizontal_padding vertical_padding
- task_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]
- task_font_color = color opacity (0 to 100)
- task_active_font_color = color opacity (0 to 100)
- task_icon_asb = alpha (0 to 100) saturation (-100 to 100) brightness (-100 to 100) SVN ONLY : adjust icon's color and transparency for task.
- task_active_icon_asb = alpha (0 to 100) saturation (-100 to 100) brightness (-100 to 100) SVN ONLY : adjust icon's color and transparency for active task
- task_background_id = integer : Which background to use for non selected tasks
- task_active_background_id = integer : Which background to use when task is selected
System Tray- systray = boolean (0 or 1) SVN ONLY : enabled or disabled systray
- systray_padding = horizontal_left_right_padding vertical_padding horizontal_spacing
- systray_background_id = integer : Which background to use for non selected tasks
To disable the tint2 system tray, comment out systray padding
- systray_sort = ascending/descending/left2right/right2left SVN ONLY : Sorting order for icon's systray (if left2right or right2left the order can be different on restart)
Clock - time1_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]
- time2_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]
- clock_font_color = color opacity (0 to 100)
- clock_padding = horizontal_padding vertical_padding
- clock_background_id = integer : Which background to use
- clock_tooltip = %a, %d. %b %Y : Tooltip text SVN ONLY
- clock_lclick_command = text : Which command to execute on left click
- clock_rclick_command = text : Which command to execute on right click
Tooltip- tooltip = boolean (0 or 1) SVN ONLY : enabled or disabled tooltip on task
- tooltip_padding = horizontal_padding vertical_padding SVN ONLY
- tooltip_show_timeout = float SVN ONLY : delay to show tooltip in second
- tooltip_hide_timeout = float SVN ONLY : delay to close tooltip in second
- tooltip_background_id = integer SVN ONLY : Which background to use
- tooltip_font_color = color opacity (0 to 100) SVN ONLY
- tooltip_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE] SVN ONLY
Battery- battery = boolean (0 or 1) : enabled or disabled battery applet
- battery_low_status = integer: At what battery percent does the icon show battery low
- battery_low_cmd = notify-send "battery low" :What to do when battery is low
- bat1_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]
- bat2_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]
- battery_font_color = color opacity (0 to 100)
- battery_padding = horizontal_padding vertical_padding
- battery_background_id = integer : Which background to use
Mouse actionCustomize mouse action with : none, close, toggle, iconify, shade, toggle_iconify, maximize_restore, desktop_left, desktop_right, next_task, prev_task.
Action maximize_restore, desktop_left, desktop_right, next_task, prev_task are SVN ONLY.
Sample format:
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify An example tint2rc#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------
#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
rounded = 7
border_width = 1
background_color = #000000 60
border_color = #ffffff 18
rounded = 5
border_width = 0
background_color = #ffffff 40
border_color = #ffffff 50
rounded = 5
border_width = 0
background_color = #ffffff 18
border_color = #ffffff 70
#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor = all
panel_position = bottom center horizontal
panel_size = 90% 28
panel_margin = 0 0
panel_padding = 7 0
font_shadow = 0
panel_background_id = 1
wm_menu = 0
#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = single_desktop
taskbar_padding = 2 3 2
taskbar_background_id = 0
#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 1
task_text = 1
task_maximum_size = 140 30
task_centered = 1
task_padding = 6 3
task_font = sans 7
task_font_color = #ffffff 70
task_active_font_color = #ffffff 85
task_background_id = 3
task_active_background_id = 2
#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray_padding = 0 3 3
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 = 1 0
clock_background_id = 0
clock_lclick_command = xclock
clock_rclick_command = orage
#---------------------------------------------
# BATTERY
#---------------------------------------------
battery = 0
battery_low_status = 7
battery_low_cmd = notify-send "battery low"
bat1_font = sans 8
bat2_font = sans 6
battery_font_color = #ffffff 76
battery_padding = 1 0
battery_background_id = 0
#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify
|
Here is a more traditionally-coloured tray:
One for Dark Themes, panel sits up the top.
The editor forgot about the option 'task_width'. You can see that option being used in the two above comments. So when spare time is available, I recommend that the 'task_width'-option and settings are appended to the 'Customizing your tint2rc' main content.
../Thanks_for_the_Tint2