Page 1 of 1

HowTo: Lucid 5.2 - swap fbpanel for Tint2 panel

Posted: Sat 05 Feb 2011, 20:55
by stu90
Lucid 5.2 openbox windows manager and Tint2 panel.
Image


First install Tint2.pet
http://www.smokey01.com/stu90/lucid.pup ... .7.1-1.pet

Then open Rox-filer file manager and navigate to /root directory - in a clear area right mouse click > Display > Show hidden

Now in the /root directory look for the file .xinitrc

Before we edit this file first make a back up copy in case you want to revert back to the lucid default with fbpanel - drag & drop > Copy to some other directory or partition.

On the /root/.xinitrc file Right mouse button click > file '.xinitrc' > open as text


The two lines we will edit are line:164 and line:169

On both lines delete the fbpanel text and replace it with tint2

So now lines 164 to 169 in /root/.xinitrc should look like this:

Code: Select all

 if [ -f /usr/bin/tint2 ];then
  #a bit of a hack: when 3builddistro runs fixmenus, which calls variconlinks,
  #which populates /var/local/icons with symlinks, /usr/local/lib/X11/pixmaps
  #is not yet populated (happens at first boot, from default icon theme)...
  [ ! -e /var/local/icons/home48.png ] && ln -fs /usr/local/lib/X11/pixmaps/* /var/local/icons/
  tint2 &
After you have edited save the /root/.xinitrc file where it is.

Next go to menu > System > Bootmanager configure bootup Then Manage services - Choose which system services to start at bootup and untick fbpanel

Now restart x-server or switich to openbox with wm-switcher
Menu > Desktop > Desktop Settings > WM switcher switch between windowsmanagers

You should now have Tint2 panel instead of Fbpanel when you are useing the openbox windows manager - tint2 is very customizable and there are lots of tint2 setups for it if you search google "tint2 config" - the file you will need to edit to change the tint2 panel is /root/.config/tint2/tint2rc

Below is an example of another tint2 panel configuration.
Image
And the code for it:

Code: Select all

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

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
rounded = 3
border_width = 1
background_color = #000000 60
border_color = #ffffff 30

rounded = 3
border_width = 1
background_color = #ffffff 0
border_color = #ffffff 20

rounded = 3
border_width = 1
background_color = #000000 18
border_color = #ffffff 35

#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor = all
panel_position = bottom center horizontal
panel_size = 90% 36
panel_margin = 0 0
panel_padding = 2 0
font_shadow = 0
panel_background_id = 0
wm_menu = 1

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

#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 0
task_text = 1
task_width = 240
task_centered = 1
task_padding = 4 2
task_font = Aller 9
task_font_color = #000000 70
task_active_font_color = #ffffff 85
task_background_id = 2
task_active_background_id = 1

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray_padding = 4 6 0
systray_background_id = 1

#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %a %d / %I:%M %p
time1_font = Aller Bold 12
#time2_format = %I:%M %p
#time2_font = Aller 10
clock_font_color = #ffffff 100
clock_padding = 6 2
clock_background_id = 1
#clock_lclick_command = xclock
#clock_rclick_command = orage

#---------------------------------------------
# BATTERY
#---------------------------------------------
battery = 1
battery_low_status = 10
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 = 1


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

Posted: Sat 19 Feb 2011, 07:54
by alexandrion
hi,
do you have any idea why the icons are not the way they should be?

http://img576.imageshack.us/img576/4215/fffn.png

Posted: Sat 19 Feb 2011, 13:24
by stu90
If you mean the system tray icons - i presume these are displayed in the order they are started, as far as i am aware Tint2 has no control over that order?
Are they in a different order when using a different windows manager - Maybe try a full reboot see if they change position.

Posted: Sat 19 Feb 2011, 15:34
by alexandrion
look closer at the application icons, here's how they should look like (same config different distro)

http://img337.imageshack.us/img337/4224/0041y.png

Posted: Sat 19 Feb 2011, 17:26
by stu90
Yes i see what you are reffering to now - I don't know what that theme is could you post the config file?
I just edited the theme i am using to:

Code: Select all

#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 1
task_text = 0
And it displays icons only ok.

Posted: Fri 22 Apr 2011, 09:39
by alexandrion
sorry i didn't answer few months ago but i left puppy, i'm back now (not sure for how long)
i'm still not sure as to why the icons didn't display properly but now they work p.s. i used a tint2 pet file i made from the latest tint2 ppa since the latest tint2 allows dragging icons along the panel

p.s. here's how my tint2 looks (if anyone else is interested)

http://i.imgur.com/AAg1S.png

Posted: Fri 24 Jun 2011, 20:43
by SimpleWater
I do not recommend this. I tried this out and followed the directions carefully, and it kinda of broke puppy. While its a little buggy, restarting x crashes it, also the tray applets stop functioning properly. The worst part is, if you switch back to fbpanel, meaning you replace .xinitrc with your backup, activate it from the bootloader, and uninstall the pet. You will still have the same problems, there is no fixing it. So, if you would not like to break your system like i did, then do not do it.

Posted: Sat 25 Jun 2011, 11:45
by lithpr
I've had great success using tint2. I say, "go for it" :)

Posted: Sat 25 Jun 2011, 12:23
by stu90
SimpleWater wrote:I do not recommend this. I tried this out and followed the directions carefully, and it kinda of broke puppy. While its a little buggy, restarting x crashes it, also the tray applets stop functioning properly. The worst part is, if you switch back to fbpanel, meaning you replace .xinitrc with your backup, activate it from the bootloader, and uninstall the pet. You will still have the same problems, there is no fixing it. So, if you would not like to break your system like i did, then do not do it.
Hello SimpleWater,
Your results seem to differ greatly from my own experience - having used this method for quite a while now on numerous frugal installs of the official lucid puppy and my own lucid based puplets i haven't encountered any of the problems you refer to, on any of them!

As far as i am aware they only thing changed here is the executable to run - instead of fbpanel it executes tint2 - i don't see how this would cause any of the problems you had or are having?

Posted: Wed 29 Jun 2011, 05:37
by SimpleWater
stu90 wrote:
Hello SimpleWater,
Your results seem to differ greatly from my own experience - having used this method for quite a while now on numerous frugal installs of the official lucid puppy and my own lucid based puplets i haven't encountered any of the problems you refer to, on any of them!

As far as i am aware they only thing changed here is the executable to run - instead of fbpanel it executes tint2 - i don't see how this would cause any of the problems you had or are having?
Hello stu90,
I decided to install a fresh lupu_525 to see the outcome of the results. So, i followed the steps equally, save for re-startingx. Instead i restarted the computer, only because i was a little paranoid. You see, previously, when i did re-startx, X would fail to start, and neither startx or xwin could boot it, forcing me to hit the off switch. And things went permanently glitchy from there.

This time around, it is working perfectly, and i do fancy the look 8)

I will re-start everything from the beginning, and use this fresh lupu with tint2 successfully installed :)

Posted: Wed 29 Jun 2011, 06:08
by DaveS
I have also had great success with Openbox/Tint2, nothing broke. :)

Post subject

Posted: Thu 22 Dec 2011, 19:26
by oldyeller
I like the tint2

But how can I get a menu for the apps besides using the mouse?

Thanks

Re: Post subject

Posted: Sun 03 Nov 2013, 15:28
by musher0
oldyeller wrote:I like the tint2

But how can I get a menu for the apps besides using the mouse?

Thanks
You could try aragon's simple puppy menu 3:
http://murga-linux.com/puppy/viewtopic. ... 16&t=84166

Stu90 : tint2 step by step

Posted: Tue 13 May 2014, 23:36
by Pelo
Stu90 : tint2 step by step : absolutely perfect description.
Success ! merci.