My favorites | Sign in
Project Logo
                
Search
for
Updated Nov 24, 2009 by thilor77
Labels: Phase-Deploy
Configure  
Customizing your tint2rc

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 border

tint2rc config file starts with background option.

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 40
tint2 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 = 0
identifier 0 applied full transparency, identifer 1 applied the first background...

Panel

  • 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)

Task

System Tray

To disable the tint2 system tray, comment out systray padding

Clock

  • time1_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]

  • time2_format = %A %d %B
  • 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

Battery

Mouse action

Customize 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

Comment by spiralof...@gmail.com, May 10, 2009

Here is a more traditionally-coloured tray:

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

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------

# The whole row
rounded = 0
border_width = 1
background_color = #eeeeee 100
border_color = #bbbbbb 100

# Active taskbar item
rounded = 2
border_width = 1
background_color = #dddddd 100
border_color = #bbbbbb 100

# Inactive taskbar items
rounded = 2
border_width = 1
background_color = #ffffff 100
border_color = #bbbbbb 100

#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor = all
panel_position = bottom center
panel_size = 100% 30
panel_margin = 0 0
panel_padding = 7 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 = 1
task_text = 1
task_width = 140
task_centered = 1
task_padding = 6 3
task_font = sans 10
task_font_color = #000000 100
task_active_font_color = #000000 100
task_background_id = 3
task_active_background_id = 2

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------

# Commenting this out is supposed to disable the tint system tray.  Whatever that means.
#systray_padding = 0 4 5
systray_background_id = 0

#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %F %a  %l:%M %P
time1_font = sans 10
#time2_format =
#time2_font = sans 6
clock_font_color = #000000 100
#clock_padding = 1 1
clock_background_id = 0

#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = toggle
mouse_right = toggle
mouse_scroll_up = none
mouse_scroll_down = none
Comment by airtonix, Jun 16, 2009

One for Dark Themes, panel sits up the top.

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

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
rounded = 2
border_width = 1
background_color = #333333 98
border_color = #ffffff 17

rounded = 2
border_width = 0
background_color = #000000 0
border_color = #ffffff 80

rounded = 2
border_width = 0
background_color = #cccccc 10
border_color = #000000 0

rounded = 0
border_width = 0
background_color = #000000 0
border_color = #000000 0

rounded = 2
border_width = 0
background_color = #cccccc 10
border_color = #000000 0

#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor = all
panel_position = top center
panel_size = 0 25
panel_margin = 8 0
panel_padding = 9 1 9
font_shadow = 0
panel_background_id = 1

#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = multi_desktop
taskbar_padding = 0 0 2
taskbar_background_id = 0

#---------------------------------------------
# TASK
#---------------------------------------------
task_icon = 1
task_text = 1
task_width = 120
task_margin = 2 5
task_centered = 1
task_padding = 5 3
task_font = Visitor TT1 BRK 8
task_font_color = #ffffff 68
task_active_font_color = #ffffff 83
task_background_id = 2
task_active_background_id = 3

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray_padding = 4 3 4
systray_background_id = 5

#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %H:%M @ %A %d %B
time1_font = Visitor TT1 BRK 8
#time2_format = %A %d %B
time2_font = (null)
clock_font_color = #ffffff 76
clock_padding = 2 2
clock_background_id = 0

#---------------------------------------------
# BATTERY
#---------------------------------------------
battery = 0
battery_low_status = 0
battery_low_cmd = (null)
bat1_font = (null)
bat2_font = (null)
battery_font_color = #000000 0
battery_padding = 2 2
battery_background_id = 0

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


Comment by phutte071, Sep 26, 2009

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


Sign in to add a comment
Hosted by Google Code