Tint2 - ArchWiki
Tint2 - ArchWiki
1 Installation
Install the tint2 (https://archlinux.org/packages/?name=tin
t2) package.
2 Configuration
tint2 has a configuration file in ~/.config/tint2/tint2rc . A
skeleton configuration file with the default settings is created the first
time you run tint2. You can then change this file to your liking. Full
documentation on how to configure tint2 is found here (https://gitla
b.com/o9000/tint2/blob/master/doc/tint2.md#configuration). You
can configure the fonts, colors, looks, location and more in this file.
The tint2 package also contains a GUI configuration tool which can be
launched with tint2conf.
Under #Panel :
# Panel
panel_items = LTSBC
# Launchers
launcher_icon_theme = LinuxLex-8
launcher_padding = 5 0 10
launcher_background_id = 9
launcher_icon_size = 85
launcher_item_app = /some/where/application.desktop
launcher_item_app = /some/where/anotherapplication.desktop
L
shows the Launcher
T
shows the Taskbar
S
shows the Systray (also called notification area)
B
shows the Battery status
C
shows the Clock
F
adds an extensible spacer (freespace). You can specify more than
one. Has no effect if `T` is also present. (since 0.12)
E
adds an executor plugin. You can specify more than one. (since
0.12.4)
P
adds a push button. You can specify more than one. (since 0.14)
:
adds a separator. You can specify more than one. (since 0.13.0)
~/.config/openbox/rc.xml
<keyboard>
<!-- Keybinding for opening OpenBox menu -->
<keybind key="C-A-space">
<action name="ShowMenu"><menu>root-menu</menu></action>
</keybind>
</keyboard>
If the menu you chose pops up under your mouse cursor, you have
done it right! Now create a open-openbox-menu.desktop file inside
the ~/.local/share/applications directory. Add the line
Exec=xdotool key ctrl+alt+space where Ctrl+Alt+Space are
your chosen key combinations. Open your new
open-openbox-menu.desktop file from your file manager and,
once again, you should see the menu appear under your cursor. Now
just add this to tint2 as a launcher, and you have your Openbox
Applications Menu as a launcher for tint2. If you need to place the
menu at a fixed position, you can use xdotool mousemove x y . You
can create a script and reference it in
open-openbox-menu.desktop since it involves two commands.
Since version 0.14, you have the ability to create buttons. Just add
"xdotool key ctrl+alt+space" string from example above to button key
action you want to be start menu action.
tint2 does not come with a volume control applet. See List of
applications/Multimedia#Volume control.
3 Running tint2
3.1 Openbox
$ tint2
If you want to run tint2 when starting Openbox, you will need to edit
~/.config/openbox/autostart and add the following line:
tint2 &
3.2 GNOME
In GNOME, the Activities view has replaced the bottom panel and
taskbar. To use tint2 in its place, run
$ gnome-session-properties
3.3 i3
tint2 -c path/to/first/config/file
tint2 -c path/to/second/config/file
4 Enabling transparency
tint2 supports both fake and real transparency. Which one is used is
regulated by the disable_transparency option in the tint2rc
configuration file.
...
feh --randomize --no-fehbg --bg-fill ~/Pictures/wallpapers/
(sleep 1 && tint2) &
...
5 Fullscreen/Overlay
To force tint2 to stay on top of the application (overlay), you need to
set the panel_layer option appropriately. This can be helpful when you
switch from a fullscreen window to a normal application using
Alt+Tab . There is a discussion on this at Crunchbang Forum (http
s://crunchbang.org/forums/viewtopic.php?pid=70048)
#Panel
panel_layer = top
strut_policy = follow_size
7 See also
Tint2 upstream wiki (https://gitlab.com/o9000/tint2/wikis/home)