tint2 est un panel multi-fonction qui a de plus en plus de succès. il est léger, rapide et hautement configurable. il est indépendant et s'intègre dans quasi tous les gestionnaires de fenêtres. c'est le panel par dédaut de la distribution crunchbanglinux sur openbox et je l'utilise dans mon livarp pour les sessions pekwm, evilwm et echinuswm.
tint2 est présent dans les dépôts Debian.
Pour l'installer:
apt-get install tint2
la configuration de tint2 peut se faire en GUI grâce à tint2conf, mais je ne vous le conseille pas. le logiciel fonctionne bien mais son organisation prête à confusion et de nombreux utilisateurs ont effacés leurs configurations préférées avec tint2conf. nous allons donc configurer tint2 “à l'ancienne”, en éditant son fichier de configuration.
notez que vous pouvez lancer plusieurs instances de tint2 avec leurs configurations respectives.
pour l'exemple, nous prendrons le fichier de configuration du tint2 de crunchbanglinux:
l'avantage de tint2 est que vous pouvez tout configurer: l'apparence, la position, les widgets, la disposition interne au panel, les actions de la souris sur le panel…. alors allons-y: voici le fichier de configuration correspondant à l'image ci-dessus:
#--------------------------------------------- # TINT2 CONFIG FILE #--------------------------------------------- # For more information about tint2, see: # http://code.google.com/p/tint2/wiki/Welcome # # For more config file examples, see: # http://crunchbanglinux.org/forums/topic/3232/my-tint2-config/ # Background definitions # ID 1 rounded = 0 border_width = 0 background_color = #ffffff 5 border_color = #828282 0 # ID 2 - task active rounded = 1 border_width = 0 background_color = #d8d8d8 30 border_color = #d8d8d8 30 # ID 3 - task rounded = 1 border_width = 0 background_color = #000000 0 border_color = #000000 0 # ID 4 rounded = 1 border_width = 1 background_color = #888888 20 border_color = #ED2323 60 # ID 5 - taskbar rounded = 0 border_width = 1 background_color = #000000 0 border_color = #000000 0 # ID 6 - active taskbar rounded = 0 border_width = 1 background_color = #d8d8d8 8 border_color = #d8d8d8 0 # ID 7 - tooltip rounded = 3 border_width = 0 background_color = #222222 90 border_color = #222222 90 # ID 8 rounded = 1 border_width = 1 background_color = #888888 20 border_color = #888888 20 # Panel panel_monitor = all panel_position = top center horizontal panel_items = LTSC panel_size = 100% 30 panel_margin = 0 -1 panel_padding = 0 0 panel_dock = 0 wm_menu = 1 panel_layer = bottom panel_background_id = 1 # Panel Autohide autohide = 0 autohide_show_timeout = 0.3 autohide_hide_timeout = 1.5 autohide_height = 6 strut_policy = follow_size # Taskbar taskbar_mode = multi_desktop taskbar_padding = 6 0 6 taskbar_background_id = 5 taskbar_active_background_id = 6 taskbar_name = 1 taskbar_name_background_id = 0 taskbar_name_active_background_id = 0 taskbar_name_font = Liberation Sans 9 taskbar_name_font_color = #828282 100 taskbar_name_active_font_color = #828282 100 # Tasks urgent_nb_of_blink = 20 task_icon = 1 task_text = 0 task_centered = 1 task_maximum_size = 40 40 task_padding = 2 2 task_background_id = 3 task_active_background_id = 2 task_urgent_background_id = 4 task_iconified_background_id = 3 # Task Icons task_icon_asb = 80 0 0 task_active_icon_asb = 100 0 0 task_urgent_icon_asb = 100 0 0 task_iconified_icon_asb = 80 0 0 # Fonts task_font = Liberation Sans 06_55 6 task_font_color = #828282 60 task_active_font_color = #828282 100 task_urgent_font_color = #FFFFFF 100 task_iconified_font_color = #d8d8d8 60 font_shadow = 0 # Launcher launcher_padding = 8 4 4 launcher_background_id = 0 launcher_icon_size = 24 # Specify icon theme names with launcher_icon_theme. # if you have an XSETTINGS manager running (like xfsettingsd), tint2 will follow your current theme. launcher_icon_theme = gnome-colors-statler # Each launcher_item_app must be a full path to a .desktop file launcher_item_app = /usr/share/applications/terminator.desktop launcher_item_app = /usr/share/applications/Thunar.desktop launcher_item_app = /usr/share/applications/geany.desktop launcher_item_app = /usr/share/applications/iceweasel.desktop # System Tray systray = 1 systray_padding = 4 2 3 systray_sort = ascending systray_background_id = 0 systray_icon_size = 24 systray_icon_asb = 100 0 0 # Clock time1_format = %H:%M:%S time1_font = Liberation Mono 10 #time2_format = %A %d %B #time2_font = Liberation Sans 6 clock_font_color = #828282 100 clock_padding = 12 4 clock_background_id = 0 clock_lclick_command = gsimplecal clock_rclick_command = gsimplecal # Tooltips tooltip = 1 tooltip_padding = 2 2 tooltip_show_timeout = 0.0 tooltip_hide_timeout = 0.0 tooltip_background_id = 7 tooltip_font_color = #d8d8d8 100 tooltip_font = Liberation Sans normal 9.0 # Mouse mouse_middle = none mouse_right = toggle mouse_scroll_up = toggle mouse_scroll_down = iconify # Battery battery = 1 battery_low_status = 20 battery_low_cmd = notify-send "battery low" battery_hide = 96 bat1_font = Liberation Sans 10 bat2_font = Liberation Sans 8 battery_font_color = #FFFFFF 100 battery_padding = 2 0 battery_background_id = 0 # End of config
détaillons à présent ce fichier: il est organisé par sections contrôlant chacune une partie de tint2:
Name=Corbeille Comment=Corbeille Exec=thunar trash:/// Icon=/home/$USER/.icons/votre_thème_icone/filesystems/gnome-fs-trash-empty.png Terminal=false Type=Application Categories=other
ensuite, éditer votre tint2rc et ajouter le launcher de corbeille:
# Each launcher_item_app must be a full path to a .desktop file launcher_item_app = /usr/share/applications/corbeille.desktop
sources: wiki tint2 sur google code + wiki tint2 sur crunchbanglinux-fr
panels ou docks, le but est de vous simplifier la tâche. pour certains (dont j'avoue faire partie) rien ne vaut le raccourcis clavier, mais ces petits outils sont très pratiques et permettent de consacrer les raccourcis à d'autres applications ou à la gestion des fenêtres.
contributeur: arpinux