Difference between revisions of "Tint2"

From ArchWiki
Jump to: navigation, search
m (Configuring)
Line 33: Line 33:
  
 
Refer to [http://openbox.org/wiki/Help:Autostart Openbox help] for more information on autostart.sh options for Openbox.
 
Refer to [http://openbox.org/wiki/Help:Autostart Openbox help] for more information on autostart.sh options for Openbox.
 +
 +
==Enabling transparency==
 +
 +
To make tint2 look its best, some form of compositing is required. If your tint2 has a large black rectangular box behind it you are either using a window manager without native compositing (like Openbox) or it isn't enabled.
 +
 +
To enable compositing under Openbox you can install [[Xcompmgr]]:
 +
 +
# pacman -S xcompmgr
 +
 +
Xcompmgr can be started like this:
 +
 +
$ xcompmgr
 +
 +
You will have to kill and restart tint2 to enable transparency.
 +
 +
If Xcompmgr is used solely to provide tint2 with transparency effects it can be run at boot by changing the autostart section in ~/.config/openbox/autostart.sh to this:
 +
 +
# Launch Xcomppmgr and tint2 with openbox
 +
if which tint2 >/dev/null 2>&1; then
 +
  (sleep 2 && xcompmgr) &
 +
  (sleep 2 && tint2) &
 +
fi
 +
 +
Various other (better) ways to make Xcompmgr run at startup are discussed in the [[Openbox]] article.

Revision as of 12:31, 19 May 2010

tint2 is a system panel for linux. It is described by its developers as "simple panel/taskbar unobtrusive and light". It can be configured to include (or not include) among other things a system tray, a task list a battery monitor and a clock. Its look can also be configured a great deal, and it does not have many dependencies. This makes it ideal for window manager users who want a panel but don't have one by default, like Openbox users.

Installation

tint2 is in the community repository. Use pacman to install it:

# pacman -S tint2

Configuration

tint2 has a configuration file in Template:Filename. A skeleton configuration file with the default settings is created on the first time tint2 is ran. You can then change this file to your liking. Full documentation on how to configure tint2 is found here. You can configure the fonts, colors, looks, location and more in this file.

Alternatively, you can edit your tint2rc configuration file graphically with tintwizard from the AUR. The newer development branch tintwizard-svn can also be used.

Running tint2

You can run tint2 by simply typing the command:

$ tint2

If you want to run it when starting X, simply add this to ~/.xinitrc. For example if you run tint2 with openbox:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
tint2 &
exec ck-launch-session openbox-session

If you want to run tint2 when starting X with a Display Manager, when using openbox as your window manager, you will need to update ~/.config/openbox/autostart.sh by adding the following:

# Launch tint2 with openbox
if which tint2 >/dev/null 2>&1; then
  (sleep 2 && tint2) &
fi

Note: if you do not have an autostart.sh file in ~/.config/openbox, you can copy the default one from /etc/xdg/autostart.sh.

Refer to Openbox help for more information on autostart.sh options for Openbox.

Enabling transparency

To make tint2 look its best, some form of compositing is required. If your tint2 has a large black rectangular box behind it you are either using a window manager without native compositing (like Openbox) or it isn't enabled.

To enable compositing under Openbox you can install Xcompmgr:

# pacman -S xcompmgr

Xcompmgr can be started like this:

$ xcompmgr

You will have to kill and restart tint2 to enable transparency.

If Xcompmgr is used solely to provide tint2 with transparency effects it can be run at boot by changing the autostart section in ~/.config/openbox/autostart.sh to this:

# Launch Xcomppmgr and tint2 with openbox
if which tint2 >/dev/null 2>&1; then
  (sleep 2 && xcompmgr) &
  (sleep 2 && tint2) &
fi

Various other (better) ways to make Xcompmgr run at startup are discussed in the Openbox article.