update TODO
[tint2-nick87720z.git] / doc / tint2.md
blob63b8c7ae859e4f3be51ca4cf2fb9cfd75f1b3d53
1 # TINT2 1 "2022-03-24" 17.1.3
3 ## NAME
4 tint2 - lightweight panel/taskbar
6 ## DESCRIPTION
7 tint2 is a simple panel/taskbar made for modern X window managers.
8 It was specifically made for Openbox but it should also work with other window managers (GNOME, KDE, XFCE etc.).
10 Features:
12   * Panel with taskbar, system tray, clock and launcher icons;
13   * Easy to customize: color/transparency on fonts, icons, borders and backgrounds;
14   * Pager like capability: move tasks between workspaces (virtual desktops), switch between workspaces;
15   * Multi-monitor capability: create one panel per monitor, showing only the tasks from the current monitor;
16   * Customizable mouse events.
18 Goals:
20   * Be unintrusive and light (in terms of memory, CPU and aesthetic);
21   * Follow the freedesktop.org specifications;
22   * Make certain workflows, such as multi-desktop and multi-monitor, easy to use.
24 ## SYNOPSIS
25 `tint2 [OPTION...]`
27 ## OPTIONS
28 `-c path_to_config_file`
29   Specifies which configuration file to use instead of the default.
31 `-v, --version`
32   Prints version information and exits.
34 `-h, --help`
35   Display this help and exits.
38 ## CONFIGURATION
40 ### Table of contents
42   * [Introduction](#introduction)
44   * [Backgrounds and borders](#backgrounds-and-borders)
46   * [Gradients](#gradients)
48   * [Panel](#panel)
50   * [Launcher](#launcher)
52   * [Taskbar/Pager](#taskbar-pager)
54   * [Taskbar buttons](#taskbar-buttons)
56   * [Mouse actions for taskbar buttons](#mouse-actions-for-taskbar-buttons)
58   * [System tray](#system-tray)
60   * [Clock](#clock)
62   * [Tooltip](#tooltip)
64   * [Battery](#battery)
66   * [Executor](#executor)
68   * [Button](#button)
70   * [Separator](#separator)
72   * [Example configuration](#example-configuration)
74 ### Introduction
76 These are instructions for configuring tint2 directly by editing its config file.
77 You may also use instead the graphical interface `tint2conf`.
79 The first time you run tint2, it will create the config file in `$HOME/.config/tint2/tint2rc` (This applies if you have done a clean install. Running tint2 in the source directory without doing 'make install' will not create the config file.)
81 You can also specify another file on the command line with the -c option, e.g.: `tint2 -c $HOME/tint2.conf`. This can be used to run multiple instances of tint2 that use different settings.
83 If you change the config file while tint2 is running, the command `killall -SIGUSR1 tint2` will force tint2 to reload it.
85 All the configuration options supported in the config file are listed below.
86 Try to respect as much as possible the order of the options as given below.
88 ### Backgrounds and borders
90 The tint2 config file starts with the options defining background elements with borders:
92   * `rounded = number_of_pixels` : the corner radius
94   * `rounded_corners = TL TR BR BL`: corners to be rounded (top left, top right, bottom right, bottom left). If not specified - all corners are rounded. *(since 17.1)*
96   * `border_width = integer` : the border width in pixels
98   * `border_sides = LRTB` : sides to draw the border on (left, right, top, bottom). If not specified - all sides are used. *(since 0.12.12)*
100   * `background_color = color opacity`
101     * `color` is specified in hex RGB, e.g. #ff0000 is red
102     * `opacity` varies from (0 to 100), where 0 is fully transparent, 100 is fully opaque. Note that for a transparent panel you need to enable a desktop compositor (such as compton or compiz).
104   * `border_color = color opacity`
105     * `color` is specified in hex RGB, e.g. #ff0000 is red
106     * `opacity` varies from (0 to 100), where 0 is fully transparent, 100 is fully opaque
108   * `background_color_hover = color opacity` (default: same as `background_color`) *(since 0.12.3)*
109     * `color` is specified in hex RGB, e.g. #ff0000 is red
110     * `opacity` varies from (0 to 100), where 0 is fully transparent, 100 is fully opaque. Note that for a transparent panel you need to enable a desktop compositor (such as compton or compiz)
112   * `border_color_hover = color opacity` (default: same as `border_color`) *(since 0.12.3)*
113     * `color` is specified in hex RGB, e.g. #ff0000 is red
114     * `opacity` varies from (0 to 100), where 0 is fully transparent, 100 is fully opaque
116   * `background_color_pressed = color opacity` (default: same as `background_color_hover`) *(since 0.12.3)*
117     * `color` is specified in hex RGB, e.g. #ff0000 is red
118     * `opacity` varies from (0 to 100), where 0 is fully transparent, 100 is fully opaque. Note that for a transparent panel you need to enable a desktop compositor (such as compton or compiz)
120   * `border_color_pressed = color opacity` (default: same as `border_color_hover`) *(since 0.12.3)*
121     * `color` is specified in hex RGB, e.g. #ff0000 is red
122     * `opacity` varies from (0 to 100), where 0 is fully transparent, 100 is fully opaque
124   * `border_content_tint_weight = integer` : Mixes the border color with the content color (for tasks, this is the average color of the window icon). Values must be between 0 (no mixing) and 100 (fully replaces the color). *(since 16.0)*
126   * `background_content_tint_weight = integer` : Mixes the background color with the content color (for tasks, this is the average color of the window icon). Values must be between 0 (no mixing) and 100 (fully replaces the color). *(since 16.0)*
128 You can define as many backgrounds as you want. For example, the following config defines two backgrounds:
131 rounded = 1
132 border_width = 0
133 background_color = #282828 100
134 border_color = #000000 0
136 rounded = 1
137 border_width = 0
138 background_color = #f6b655 90
139 border_color = #cccccc 40
142 tint2 automatically identifies each background with a number starting from 1 (1, 2, ...).
143 Afterwards, you can apply a background to objects (panel, taskbar, task, clock, systray) using the background id, for example:
146 panel_background_id = 1
147 taskbar_background_id = 0
148 task_background_id = 0
149 task_active_background_id = 2
150 systray_background_id = 0
151 clock_background_id = 0
154 Identifier 0 refers to a special background which is fully transparent, identifier 1 applies the first background defined in the config file etc.
156 ### Gradients
158 (Available since 0.13.0)
160 Backgrounds also allow specifying gradient layers
161 that are drawn on top of the solid color background.
163 First the user must define one or more gradients in the config file,
164 each starting with `gradient = TYPE`. These must be added before backgrounds.
166 Then gradients can be added by index to backgrounds,
167 using the `gradient_id = INDEX`, `gradient_id_hover = INDEX` and
168 `gradient_id_pressed = INDEX`, where `INDEX` is
169 the gradient index, starting from 1.
171 #### Gradient types
173 Gradients vary the color between fixed control points:
174 * vertical gradients: top-to-bottom;
175 * horizontal gradients: left-to-right;
176 * radial gradients: center-to-corners.
178 The user must specify the start and end colors, and can optionally add extra color stops in between
179 using the `color_stop` option, as explained below.
181 ##### Vertical gradient, with color varying from the top edge to the bottom edge, two colors
184 gradient = vertical
185 start_color = #rrggbb opacity
186 end_color = #rrggbb opacity
189 ##### Horizontal gradient, with color varying from the left edge to the right edge, two colors
192 gradient = horizontal
193 start_color = #rrggbb opacity
194 end_color = #rrggbb opacity
197 ##### Radial gradient, with color varying from the center to the corner, two colors:
200 gradient = radial
201 start_color = #rrggbb opacity
202 end_color = #rrggbb opacity
205 ##### Adding extra color stops (0% and 100% remain fixed, more colors at x% between the start and end control points)
208 color_stop = percentage #rrggbb opacity
211 #### Gradient examples
214 # Gradient 1: thin film effect
215 gradient = horizontal
216 start_color = #111122 30
217 end_color = #112211 30
218 color_stop = 60 #221111 30
220 # Gradient 2: radial glow
221 gradient = radial
222 start_color = #ffffff 20
223 end_color = #ffffff 0
225 # Gradient 3: elegant black
226 gradient = vertical
227 start_color = #444444 100
228 end_color = #222222 100
230 # Gradient 4: elegant black
231 gradient = horizontal
232 start_color = #111111 100
233 end_color = #222222 100
235 # Background 1: Active desktop name
236 rounded = 2
237 border_width = 1
238 border_sides = TBLR
239 background_color = #555555 10
240 border_color = #ffffff 60
241 background_color_hover = #555555 10
242 border_color_hover = #ffffff 60
243 background_color_pressed = #555555 10
244 border_color_pressed = #ffffff 60
245 gradient_id = 3
246 gradient_id_hover = 4
247 gradient_id_pressed = 2
249 [...]
252 ### Panel
254   * `panel_items = LTSBC` defines the items tint2 will show and the order of those items. Each letter refers to an item, defined as:
255     * `L` shows the Launcher
256     * `T` shows the Taskbar
257     * `S` shows the Systray (also called notification area)
258     * `B` shows the Battery status
259     * `C` shows the Clock
260     * `F` adds an extensible spacer (freespace). You can specify more than one. Has no effect if `T` is also present. *(since 0.12)*
261     * `E` adds an executor plugin. You can specify more than one. *(since 0.12.4)*
262     * `P` adds a push button. You can specify more than one. *(since 0.14)*
263     * `:` adds a separator. You can specify more than one. *(since 0.13.0)*
265     For example, `panel_items = STC` will show the systray, the taskbar and the clock (from left to right).
267   * `panel_monitor = monitor (all or primary or 1 or 2 or ...)` : Which monitor tint2 draws the panel on
268     * The first monitor is `1`
269     * Use `panel_monitor = all` to get a separate panel per monitor
271   * `primary_monitor_first = boolean (0 or 1)` : Place the primary monitor before all the other monitors in the list. *(since 0.12.4; removed in 1.0, use `primary` instead)*
273 ![](images/panel_padding.jpg)
275   * `panel_position = vertical_position horizontal_position orientation`
276     * `vertical_position` is one of: `bottom`, `top`, `center`
277     * `horizontal_position` is one of: `left`, `right`, `center`
278     * `orientation` is one of: `horizontal`, `vertical`
280   * `panel_size = width height`
281     * `width` and `height` can be specified without units (e.g. `123`) as pixels, or followed by `%` as percentages of the monitor size (e.g. `50%`). Use `100%` for full monitor width/height.
282       Example:
284   * `scale_relative_to_dpi = integer` : If set to a non-zero value, HiDPI scaling is enabled. Each panel is visible on a different monitor. Thus each panel has a specific scaling factor. The scaling factor is computed as the ratio between the monitor DPI (obtained from the dimensions in pixels and millimeters from RandR) and a configured reference DPI - this is the DPI for which exising user configs looked normal, for backward compatibility.
286   * `scale_relative_to_screen_height = integer` : Similar to `scale_relative_to_dpi`, except the scaling factor is computed as the ratio between the monitor height and `scale_relative_to_screen_height`. The effect is cumulative with `scale_relative_to_dpi`, i.e. if both options are present, the factors are multiplied.
289 # The panel's width is 94% the size of the monitor, the height is 30 pixels:
290 panel_size = 94% 30
293   * `panel_shrink = boolean (0 or 1)` : If set to 1, the panel will shrink to a compact size dynamically. *(since 0.13)*
295   * `panel_margin = horizontal_margin vertical_margin` : The margins define the distance between the panel and the horizontal/vertical monitor edge. Use `0` to obtain a panel with the same size as the edge of the monitor (no margin).
297 ![](images/panel_size_margin.jpg)
299   * `panel_padding = horizontal_padding vertical_padding spacing` : Please refer to the image below.
301 ![](images/panel_padding.jpg)
303   * `font_shadow = boolean (0 or 1)`
305   * `panel_background_id = integer` : Which background to use for the panel.
307   * `wm_menu = boolean (0 or 1)` : Defines if tint2 forwards unhandled mouse events to your window manager. Useful for window managers such as openbox, which display the start menu if you right click on the desktop.
309   * `panel_dock = boolean (0 or 1)` : Defines if tint2 is placed into the window manager's dock. For the openbox window manager it is advised to also use a modifier for the moveButton option, otherwise the mouse click is not forwarded to tint2 (in ~/.config/openbox/rc.xml).
311   * `panel_pivot_struts = boolean (0 or 1)` : Defines if tint2 lies to the window manager about its orientation (horizontal vs vertical) when requesting reserved space with STRUTs (see `strut_policy` below). On some window managers, this allows placing a panel in the middle of the virtual screen, e.g. on the bottom edge of the top monitor in a vertical dual-monitor setup. 
313   * `panel_layer = bottom/normal/top` : Places tint2 into the bottom/normal/top layer. This is helpful for specifying if the panel can be covered by other windows or not. The default is the bottom layer, but with real transparency normal or top layer may be a nice alternative.
315   * `strut_policy = follow_size/minimum/none` : STRUTs are used by the window manager to decide the size of maximized windows. Note: on multi-monitor (Xinerama) setups, the panel generally must be placed at the edge (not in the middle) of the virtual screen for this to work correctly (though on some window managers, setting `panel_pivot_struts` may work around this limitation). 
316     * `follow_size` means that the maximized windows always resize to have a common edge with tint2.
317     * `minimum` means that the maximized windows always expand to have a common edge with the hidden panel. This is useful if the `autohide` option is enabled.
318     * `none` means that the maximized windows use the full screen size.
320   * `panel_window_name = string` : Defines the name of the panel's window. Default: 'tint2'. *(since 0.12)*
322   * `disable_transparency = boolean (0 or 1)` : Whether to disable transparency instead of detecting if it is supported. Useful on broken graphics stacks. *(since 0.12)*
324   * `mouse_effects = boolean (0 or 1)` : Whether to enable mouse hover effects for clickable items. *(since 0.12.3)*
326   * `mouse_hover_icon_asb = alpha (0 to 100) saturation (-100 to 100) brightness (-100 to 100)` : Adjusts the icon color and transparency on mouse hover (works only when mouse_effects = 1).` *(since 0.12.3)*
328   * `mouse_pressed_icon_asb = alpha (0 to 100) saturation (-100 to 100) brightness (-100 to 100)` : Adjusts the icon color and transparency on mouse press (works only when mouse_effects = 1).` *(since 0.12.3)*
330   * `autohide = boolean (0 or 1)` : Whether to enable panel hiding when the mouse cursor exists the panel.
332   * `autohide_show_timeout = float` : Show timeout in seconds after the mouse cursor enters the panel. Use '.' as decimal separator.
334   * `autohide_hide_timeout = float` : Hide timeout in seconds after the mouse cursor exits the panel. Use '.' as decimal separator.
336   * `autohide_height = integer` : panel height (width for vertical panels) in hidden mode.
338 ### Launcher
339   * `launcher_item_app = path_to_application` : Each `launcher_item_app` must be a file path to a .desktop file following the freedesktop.org [specification](http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html). The paths may begin with `~`, which is expanded to the path of the user's home directory. If only a file name is specified, the file is search in the standard application directories (`$XDG_DATA_HOME/applications`, `~/.local/share/applications`, `$XDG_DATA_DIRS/applications`, `/usr/local/share/applications`, `/usr/share/applications`, `/opt/share/applications`).
341   * `launcher_apps_dir = path_to_directory` : Specifies a path to a directory from which the launcher is loading all .desktop files (all subdirectories are explored recursively). Can be used multiple times. The path may begin with `~`, which is expanded to the path of the user's home directory. *(since 0.12)*
343   * `launcher_background_id = integer` : Defines which background to use.
345   * `launcher_icon_background_id = integer` : Defines which background to use for icons.
347   * `launcher_padding = horizontal_padding vertical_padding spacing`
349   * `launcher_icon_size = integer` : The launcher icon size, in pixels.
351   * `launcher_icon_theme = name_of_theme` : (Optional) Uses the specified icon theme to display shortcut icons. Note that tint2 will detect and use the icon theme of your desktop if you have an XSETTINGS manager running (which you probably do), unless `launcher_icon_theme_override = 1`.
353   * `launcher_icon_theme_override = boolean (0 or 1)` : Whether `launcher_icon_theme` overrides the value obtained from the XSETTINGS manager. *(since 0.12)*
355   * `launcher_icon_asb = alpha (0 to 100) saturation (-100 to 100) brightness (-100 to 100)` : Adjusts the icon color and transparency.
357   * `launcher_tooltip = boolean (0 or 1)` : Whether to show tooltips for the launcher icons.
359   * `startup_notifications = boolean (0 or 1)` : Whether to show startup notifications when starting applications from the launcher. *(since 0.12)*
361 ### Taskbar / Pager
363   * `taskbar_mode = single_desktop/multi_desktop`
364     * `single_desktop` : Shows a normal taskbar listing the tasks running on the current virtual desktop (also known as 'workspace');
365     * `multi_desktop` : Pager like capability. Shows multiple taskbars, one per virtual desktop, with which:
366       * You can drag-and-drop tasks between virtual desktops;
367       * You can switch between virtual desktops.
369   * `taskbar_hide_if_empty = boolean (0 or 1)` : If enabled, in multi-desktop mode the taskbars corresponding to empty desktops different from the current desktop are hidden. *(since 0.13)*
371   * `taskbar_distribute_size = boolean (0 or 1)` : If enabled, in multi-desktop mode distributes between taskbars the available size proportionally to the number of tasks. Default: disabled. *(since 0.12)*
373   * `taskbar_padding = horizontal_padding vertical_padding spacing`
375 ![](images/taskbar_padding.jpg)
377   * `taskbar_background_id = integer` : Which background to use
379   * `taskbar_active_background_id = integer` : Which background to use for the taskbar of the current virtual desktop.
381   * `taskbar_hide_inactive_tasks = boolean (0 or 1)` :  If enabled, the taskbar shows only the active task. *(since 0.12)*
383   * `taskbar_hide_different_monitor = boolean (0 or 1)` :  If enabled, the taskbar shows only the tasks from the current monitor. Useful when running different tint2 instances on different monitors, each one having its own config. *(since 0.12)*
385   * `taskbar_hide_different_desktop = boolean (0 or 1)` :  If enabled, the taskbar shows only the tasks from the current desktop. Useful to make multi-desktop taskbars more compact, but still allow desktop switching with mouse click. *(since 1.0)*
387   * `taskbar_always_show_all_desktop_tasks = boolean (0 or 1)` :  Has effect only if `taskbar_mode = multi_desktop`. If enabled, tasks that appear on all desktops are shown on all taskbars. Otherwise, they are shown only on the taskbar of the current desktop. *(since 0.12.4)*
389   * `taskbar_sort_order = none/title/center` : Specifies the sort order of the tasks on the taskbar.  *(since 0.12)*
390     * `none` : No sorting. New tasks are simply appended at the end of the taskbar when they appear.
391     * `title` : Sorts the tasks by title.
392     * `application` : Sorts the tasks by application name. *(since 16.3)*
393     * `center` : Sorts the tasks by their window centers.
394     * `mru` : Shows the most recently used tasks first. *(since 0.12.4)*
395     * `lru` : Shows the most recently used tasks last. *(since 0.12.4)*
397   * `task_align = left/center/right` : Specifies the alignment of the tasks on the taskbar. Default: left.
399   * `taskbar_name = boolean (0 or 1)` :  Whether to show the virtual desktop name in the taskbar.
401   * `taskbar_name_padding = padding` :  Padding for the virtual desktop name.
403   * `taskbar_name_background_id = integer` :  Which background to use for the desktop name.
405   * `taskbar_name_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]` :  Font configuration for the desktop name.
407   * `taskbar_name_font_color = color opacity (0 to 100)` :  Font color for the desktop name.
409   * `taskbar_name_active_background_id = integer` :  Which background to use for the name of the current desktop.
411   * `taskbar_name_active_font_color = color opacity (0 to 100)` :  Font color for the name of the current desktop.
413 # Taskbar buttons
415 The following options configure the task buttons in the taskbar:
417   * `task_icon = boolean (0 or 1)` : Whether to display the task icon. There is no explicit option to control the task icon size; it depends on the vertical padding set with `task_padding`.
419   * `task_text = boolean (0 or 1)` : Whether to display the task text.
421   * `task_centered = boolean (0 or 1)` : Whether the task text is centered.
423   * `task_tooltip = boolean (0 or 1)` : Whether to show tooltips for tasks.
425   * `task_thumbnail = boolean (0 or 1)` : Whether to show thumbnail tooltips for tasks. *(since 16.0)*
427   * `task_thumbnail_size = width` : Thumbnail size. *(since 16.0)*
429   * `task_maximum_size = width height`
430     * `width` is used with horizontal panels to limit the size of the tasks. Use `width = 0` to get full taskbar width.
431     * `height` is used with vertical panels.
433   * `task_padding = horizontal_padding vertical_padding spacing`
435   * `urgent_nb_of_blink = integer` : Number of blinks on 'get attention' events.
437 ![](images/task_padding.jpg)
439   * `task_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]`
441   * `task_font_color = color opacity (0 to 100)`
443   * `task_icon_asb = alpha (0 to 100) saturation (-100 to 100) brightness (-100 to 100)` : Adjust the task icon's color and transparency.
445   * `task_background_id = integer` : Which background to use for non selected tasks
447 For the next 3 options STATUS can be `active` / `iconified`  / `urgent`:
448   * `task_STATUS_font_color = color opacity (0 to 100)`
450   * `task_STATUS_icon_asb = alpha (0 to 100) saturation (-100 to 100) brightness (-100 to 100)` : Adjusts the task icon's color and transparency.
452   * `task_STATUS_background_id = integer` : Which background to use for the task.
454 ### Mouse actions for taskbar buttons
456 The possible mouse events are: `left, middle, right, scroll_up, scroll_down`.
458 The possible mouse actions are: `none, close, toggle, iconify, shade, toggle_iconify, maximize_restore, desktop_left, desktop_right, next_task, prev_task`.
460 Use `mouse_event = action` to customize mouse actions. Example:
462   mouse_middle = none
463   mouse_right = close
464   mouse_scroll_up = toggle
465   mouse_scroll_down = iconify
468 The action semantics:
469   * `none` : If `wm_menu = 1` is set, the mouse event is forwarded to the window manager. Otherwise it is ignored.
470   * `close` : close the task
471   * `toggle` : toggle the task
472   * `iconify` : iconify (minimize) the task
473   * `toggle_iconify` : toggle or iconify the task
474   * `maximize_restore` : maximized or minimized the task
475   * `shade` : shades (collapses) the task
476   * `desktop_left` : send the task to the desktop on the left
477   * `desktop_right` : send the task to the desktop on the right
478   * `next_task` : send the focus to next task
479   * `prev_task` : send the focus to previous task
481 ### System Tray
483   * `systray_padding = horizontal_padding vertical_padding spacing`
485   * `systray_background_id = integer` : Which background to use.
487   * `systray_sort = ascending/descending/left2right/right2left` : Specifies the sorting order for the icons in the systray: in ascending/descending alphabetical order of the icon title, or always add icons to the right/left (note that with `left2right` or `right2left` the order can be different on panel restart).
489   * `systray_icon_size = max_icon_size` : Set the maximum system tray icon size to `number`. Set to `0` for automatic icon sizing.
491   * `systray_icon_asb = alpha (0 to 100) saturation (-100 to 100) brightness (-100 to 100)` : Adjust the systray icons color and transparency.
493   * `systray_monitor = integer (1, 2, ...) or primary` :  On which monitor to draw the systray. The first monitor is `1`. *(since 0.12)*
495   * `systray_name_filter = string` :  Regular expression to identify icon names to be hidden. For example, `^audacious$` will hide icons with the exact name `audacious`, while `aud` will hide any icons having `aud` in the name. *(since 0.13.1)*
497 ### Clock
499   * `time1_format = %H:%M` : The format used by the first line of the clock.
500     * `time1_format`, `time2_format` and `clock_tooltip` use the 'strftime' syntax. More info can be found here: http://www.manpagez.com/man/3/strftime/
501     * To hide the clock, comment `time1_format` and `time2_format`.
503   * `time1_timezone = :US/Hawaii`
504     * `time1_timezone`, `time2_timezone` and `clock_tooltip_timezone` can be used to specify a timezone. If you do not specify a value the system-wide timezone is used. The timezones can usually be found in `/usr/share/zoneinfo`. If your timezones are in a different directory, you need to specify the absolute path, e.g. `time1_timezone = :/different/zoneinfo/dir/US/Hawaii` Always prepend the timezone with a ':'
506   * `time1_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]`
508   * `time2_format = %A %d %B`
510   * `time2_timezone = :Europe/Berlin`
512   * `time2_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]`
514   * `clock_font_color = color opacity (0 to 100)`
516   * `clock_padding = horizontal_padding vertical_padding`
518   * `clock_background_id = integer` : Which background to use
520   * `clock_tooltip = %a, %d. %b %Y` : Format for the clock's tooltip.
522   * `clock_tooltip_timezone = :UTC`
524   * `clock_lclick_command = text` : Command to execute on left click.
526   * `clock_rclick_command = text` : Command to execute on right click.
528   * `clock_mclick_command = text` : Command to execute on middle click. *(since 0.12.1)*
530   * `clock_uwheel_command = text` : Command to execute on wheel scroll up. *(since 0.12.1)*
532   * `clock_dwheel_command = text` : Command to execute on wheel scroll down. *(since 0.12.1)*
534 ### Tooltip
536   * `tooltip_padding = horizontal_padding vertical_padding`
538   * `tooltip_show_timeout = float` : Delay to show the tooltip in seconds. Use `.` as decimal separator.
540   * `tooltip_hide_timeout = float` : Delay to hide the tooltip in seconds. Use `.` as decimal separator.
542   * `tooltip_background_id = integer` : Which background to use for tooltips. Note that with fake transparency the alpha channel and corner radius options are not respected.
544   * `tooltip_font_color = color opacity  (0 to 100)`
546   * `tooltip_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]`
548 ### Battery
550   * `battery_hide = never/integer (0 to 100)` : At what battery percentage the battery item is hidden.
552   * `battery_low_status = integer`: At what battery percentage the low command is executed.
554   * `battery_low_cmd = xmessage 'tint2: Battery low!'` : Command to execute when the battery is low.
556   * `battery_full_cmd = notify-send "battery full"` : Command to execute when the battery is full.
558   * `bat1_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]`
560   * `bat2_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]`
562   * `battery_font_color = color opacity (0 to 100)`
564   * `bat1_format = FORMAT_STRING` : Format for battery line 1. Default: %p. *(since 1.0)* Format specification:
565     * %s: State (charging, discharging, full, unknown).
566     * %m: Minutes left until completely charged/discharged (estimated).
567     * %h: Hours left until completely charged/discharged (estimated).
568     * %t: Time left. Shows "hrs:mins" when charging/discharging, or "Ful\" when full.
569     * %p: Percentage. Includes the % sign.
570     * %P: Percentage. Without the % sign.
572   * `bat2_format = FORMAT_STRING` : Format for battery line 2. Default: %t. *(since 1.0)*
574   * `battery_padding = horizontal_padding vertical_padding`
576   * `battery_background_id = integer` : Which background to use for the battery.
578   * `battery_tooltip_enabled = boolean (0 or 1)` : Enable/disable battery tooltips. *(since 0.12.3)*
580   * `battery_lclick_command = text` : Command to execute on left click. *(since 0.12.1)*
582   * `battery_rclick_command = text` : Command to execute on right click. *(since 0.12.1)*
584   * `battery_mclick_command = text` : Command to execute on middle click. *(since 0.12.1)*
586   * `battery_uwheel_command = text` : Command to execute on wheel scroll up. *(since 0.12.1)*
588   * `battery_dwheel_command = text` : Command to execute on wheel scroll down. *(since 0.12.1)*
590   * `ac_connected_cmd = text` : Command to execute when the power adapter is plugged in. *(since 0.12.3)*
592   * `ac_disconnected_cmd = text` : Command to execute when the power adapter is unplugged. *(since 0.12.3)*
594 ### Executor
596   * `execp = new` : Begins the configuration of a new executor plugin. Multiple such plugins are supported; just use multiple `E`s in `panel_items`. *(since 0.12.4)*
598   * `execp_name = text` : A name that can be used with `tint2-send refresh-execp` to re-execute the command. *(since 17.0.2)*
600   * `execp_command = text` : Command to execute. *(since 0.12.4)*
602   * `execp_interval = integer` : The command is executed again after `execp_interval` seconds from the moment it exits. If zero, the command is executed only once. *(since 0.12.4)*
604   * `execp_continuous = integer` : If non-zero, the last `execp_continuous` lines from the output of the command are displayed, every `execp_continuous` lines; this is useful for showing the output of commands that run indefinitely, such as `ping 127.0.0.1`. If zero, the output of the command is displayed after it finishes executing. *(since 0.12.4)*
606   * `execp_has_icon = boolean (0 or 1)` : If `execp_has_icon = 1`, the first line printed by the command is interpreted as a path to an image file. *(since 0.12.4)*
608   * `execp_cache_icon = boolean (0 or 1)` : If `execp_cache_icon = 0`, the image is reloaded each time the command is executed (useful if the image file is changed on disk by the program executed by `execp_command`). *(since 0.12.4)*
610   * `execp_icon_w = integer` : You can use `execp_icon_w` and `execp_icon_h` to resize the image. If one of them is zero/missing, the image is rescaled proportionally. If both of them are zero/missing, the image is not rescaled. *(since 0.12.4)*
612   * `execp_icon_h = integer` : See `execp_icon_w`. *(since 0.12.4)*
614   * `execp_tooltip = text` : The tooltip. If left empty - no tooltip is displayed. If missing - the standard error of the command is shown as a tooltip. If the standard error is empty, the tooltip will show information about the time when the command was last executed. *(since 0.12.4)*  
615     An ANSI clear screen sequence can reset the contents:
616     - shell: `printf '\e[2J'`
617     - C:     `printf ("\x1b[2J");`
618     - shell using tput from ncurses: `tput clear`)  
619     **Note:** previous tint2 versions don't set TERM, so this must be done manually - `tput -Tansi.sys-old clear`
621   * `execp_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]` : The font used to draw the text.  *(since 0.12.4)*
623   * `execp_font_color = color opacity` : The font color. *(since 0.12.4)*
625   * `execp_markup = boolean (0 or 1)` : If non-zero, the output of the command is treated as Pango markup, which allows rich text formatting. The format is [documented here](https://developer.gnome.org/pygtk/stable/pango-markup-language.html). Note that using this with commands that print data downloaded from the Internet is a possible security risk. *(since 0.12.4)*
627   * `execp_background_id = integer` : Which background to use. *(since 0.12.4)*
629   * `execp_centered = boolean (0 or 1)` : Whether to center the text. *(since 0.12.4)*
631   * `execp_padding = horizontal_padding vertical_padding spacing_between_icon_and_text` *(since 0.12.4)*
633   * `execp_monitor = integer (1, 2, ...), primary or all` :  On which monitor to draw the executor. The first monitor is `1`. *(since 17.0)*
635   * `execp_lclick_command = text` : Command to execute on left click. If not defined, `execp_command` is  executed immediately, unless it is currently running. *(since 0.12.4)*
636   * `execp_mclick_command = text` : Command to execute on right click. If not defined, `execp_command` is  executed immediately, unless it is currently running. *(since 0.12.4)*
637   * `execp_rclick_command = text` : Command to execute on middle click. If not defined, `execp_command` is  executed immediately, unless it is currently running. *(since 0.12.4)*
638   * `execp_uwheel_command = text` : Command to execute on wheel scroll up. If not defined, `execp_command` is  executed immediately, unless it is currently running. *(since 0.12.4)*
639   * `execp_dwheel_command = text` : Command to execute on wheel scroll down. If not defined, `execp_command` is  executed immediately, unless it is currently running. *(since 0.12.4)*
641   * `execp_lclick_command_sink = integer (-1, 0 or positive)` : Command sink for execp_lclick_command. If not defined or -1 - command is executed in new shell. 0 - use sink for local executor (executors only). *(since 17.1)*
642   * `execp_mclick_command_sink = integer (-1, 0 or positive)` : Command sink for execp_mclick_command. If not defined or -1 - command is executed in new shell. 0 - use sink for local executor (executors only). *(since 17.1)*
643   * `execp_rclick_command_sink = integer (-1, 0 or positive)` : Command sink for execp_rclick_command. If not defined or -1 - command is executed in new shell. 0 - use sink for local executor (executors only). *(since 17.1)*
644   * `execp_uwheel_command_sink = integer (-1, 0 or positive)` : Command sink for execp_uwheel_command. If not defined or -1 - command is executed in new shell. 0 - use sink for local executor (executors only). *(since 17.1)*
645   * `execp_dwheel_command_sink = integer (-1, 0 or positive)` : Command sink for execp_dwheel_command. If not defined or -1 - command is executed in new shell. 0 - use sink for local executor (executors only). *(since 17.1)*
647 #### Executor samples
649 ##### Print the hostname
652 execp = new
653 execp_command = hostname
654 execp_interval = 0
657 ##### Print disk usage for the root partition every 10 seconds
660 execp = new
661 execp_command = while df -h; do sleep 1; done | stdbuf -oL awk '$6 == "/" { print $6 ": " $2 " " $5 }'
662 execp_interval = 10
665 ##### Button with icon and rich text, executes command when clicked
668 execp = new
669 execp_command = echo /usr/share/icons/elementary-xfce/emblems/24/emblem-colors-blue.png; echo '<span foreground="#7f7">Click</span> <span foreground="#77f">me</span> <span foreground="#f77">pls</span>'
670 execp_has_icon = 1
671 execp_interval = 0
672 execp_centered = 1
673 execp_font = sans 9
674 execp_markup = 1
675 execp_font_color = #aaffaa 100
676 execp_padding = 2 0
677 execp_tooltip = I will tell you a secret...
678 execp_lclick_command = zenity --info "--text=$(uname -sr)"
679 execp_background_id = 2
682 ##### Desktop pager with text
685 execp = new
686 execp_command = xprop -root -spy | stdbuf -oL awk '/^_NET_CURRENT_DESKTOP/ { print "Workspace " ($3 + 1) }'
687 execp_interval = 1
688 execp_continuous = 1
691 ##### Desktop pager with icon
694 execp_command = xprop -root -spy | stdbuf -oL awk -v home="$HOME" '/^_NET_CURRENT_DESKTOP/ { print home "/.config/myPager/" ($3 + 1) ".png\n" }'
695 execp_interval = 1
696 execp_has_icon = 1
697 execp_cache_icon = 1
698 execp_continuous = 2
701 ##### Round-trip time to the gateway, refreshed every second
704 execp = new
705 execp_command = ping -i 1 -W 1 -O -D -n $(ip route | grep '^default.* via' | grep -o '[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*') | stdbuf -oL awk -F'[ =]' '/no answer/ { print "<span foreground=\"#faa\">timeout</span>" } /time=/ { printf "<span foreground=\"#7af\">%3.0f %s</span>\n", $11, $12 }'
706 execp_continuous = 1
707 execp_interval = 1
708 execp_markup = 1
711 ##### Memory usage
714 # Note the use of "stdbuf -oL" to force the program to flush the output line by line.
715 execp = new
716 execp_command = free -b -s1 | stdbuf -oL awk '/^Mem:/ { printf "Mem: %s %.0f%%\n", $2, 100 * ($2 - $7) / $2 }' | stdbuf -oL numfmt --to=iec-i --field=2 -d' '
717 execp_interval = 1
718 execp_continuous = 1
721 #### X keyboard layout with icon and tooltip with
724 execp = new
725 execp_command = skb | stdbuf -oL -eL awk -v "c=$(tput -Tansi.sys-old clear)" '{ print "/usr/share/xxkb/"tolower(substr($1,0,2))"15.xpm"; print c$1 | "cat >&2" }'
726 execp_interval = 1
727 execp_continuous = 1
730 ##### Network load
733 execp = new
734 execp_command = stdbuf -oL bwm-ng -o csv -t 1000 | stdbuf -oL awk -F ';' '/total/ { printf "Net: %.0f Mb/s\n", ($5*8/1.0e6) }'
735 execp_continuous = 1
736 execp_interval = 1
739 ##### Dumb executor sink example
742 execp = new
743 execp_command = echo waiting; stdbuf -oL sed 's/^/Event:/'
744 execp_continuous = 1
745 execp_lclick_command = Left Button
746 execp_rclick_command = Right Button
747 execp_mclick_command = Middle Button
748 execp_uwheel_command = Scroll Up
749 execp_dwheel_command = Scroll Down
750 execp_lclick_command_sink = 0
751 execp_rclick_command_sink = 0
752 execp_mclick_command_sink = 0
753 execp_uwheel_command_sink = 0
754 execp_dwheel_command_sink = 0
757 ### Button
759   * `button = new` : Begins the configuration of a new button. Multiple such plugins are supported; just use multiple `P`s in `panel_items`. *(since 0.14)*
761   * `button_icon = text` : Name or path of icon (or empty). *(since 0.14)*
763   * `button_text = text` : Text to display (or empty). *(since 0.14)*
765   * `button_tooltip = text` : The tooltip (or empty). *(since 0.14)*
767   * `button_font = [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]` : The font used to draw the text.  *(since 0.14)*
769   * `button_font_color = color opacity` : The font color. *(since 0.14)*
771   * `button_background_id = integer` : Which background to use. *(since 0.14)*
773   * `button_centered = boolean (0 or 1)` : Whether to center the text. *(since 0.14)*
775   * `button_padding = horizontal_padding vertical_padding spacing_between_icon_and_text` *(since 0.14)*
776   * `button_max_icon_size = integer` : Sets a limit to the icon size. Otherwise, the icon will expand to the edges. *(since 0.14)*
778   * `button_lclick_command = text` : Command to execute on left click. If not defined, `execp_command` is  executed immediately, unless it is currently running. *(since 0.14)*
779   * `button_mclick_command = text` : Command to execute on right click. If not defined, `execp_command` is  executed immediately, unless it is currently running. *(since 0.14)*
780   * `button_rclick_command = text` : Command to execute on middle click. If not defined, `execp_command` is  executed immediately, unless it is currently running. *(since 0.14)*
781   * `button_uwheel_command = text` : Command to execute on wheel scroll up. If not defined, `execp_command` is  executed immediately, unless it is currently running. *(since 0.14)*
782   * `button_dwheel_command = text` : Command to execute on wheel scroll down. If not defined, `execp_command` is  executed immediately, unless it is currently running. *(since 0.14)*
784 ### Separator
786   * `separator = new` : Begins the configuration of a new separator. Multiple such plugins are supported; just use multiple `:`s in `panel_items`. *(since 0.13.0)*
788   * `separator_background_id = integer` : Which background to use. *(since 0.13.0)*
790   * `separator_color = color opacity` : The foreground color. *(since 0.13.0)*
792   * `separator_style = [empty | line | dots]` : The separator style. *(since 0.13.0)*
794   * `separator_size = integer` : The thickness of the separator. Does not include the border and padding. For example, if the style is `line`, this is the line thickness; if the style is `dots`, this is the dot's diameter. *(since 0.13.0)*
796   * `separator_padding = side_padding cap_padding` : The padding to add to the sides of the separator, in pixels. *(since 0.13.0)*
798 ### Example configuration
800 See /etc/xdg/tint2/tint2rc.
802 ## AUTHOR
803 tint2 was written by Thierry Lorthiois <lorthiois@bbsoft.fr>.
804 It is based on ttm, originally written by Pål Staurland <staura@gmail.com>.
806 This manual page was originally written by Daniel Moerner <dmoerner@gmail.com>, for the Debian project (but may be used by others).
807 It was adopted from the tint2 docs.
809 ## SEE ALSO
810 The main website https://gitlab.com/nick87720z/tint2
811 and the wiki page at https://gitlab.com/o9000/tint2/wikis/home.
813 This documentation is also provided in HTML and Markdown format in the system's default location
814 for documentation files, usually `/usr/share/doc/tint2` or `/usr/local/share/doc/tint2`.