How to make a menu in tint2?

Window managers, icon programs, widgets, etc.
Post Reply
Message
Author
User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

How to make a menu in tint2?

#1 Post by oldyeller »

Hello

Would anyone be able to help me with a menu for tint2.


thanks

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#2 Post by musher0 »

Hello, oldyeller.

I did a little research and tint2 does not have a programs menu applet available. Only monitors and such.

You could use aragon's spm2 with it, though. See here: http://murga-linux.com/puppy/viewtopic. ... 65&t=75804 But it is an independent program, not integrated with tint2.

An alternative to tint2 is of course the trusty fbpanel. http://www.murga-linux.com/puppy/viewtopic.php?t=68200

I hope this helps.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

stu90

#3 Post by stu90 »

As Musher0 says there is no 'official' menu applet / plugin for tint2 like with other panels - you can however add Openbox menu to Tint2 panel - it requires manual editing of some config files though.
If you are happy / comfortable with such steps let me know and i will make a howto guide.

User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

#4 Post by oldyeller »

Hello,

thanks musher0, for the information about tint2 and about aragon's spm2. This looks good but not what I am looking for.




stu90 Yes I would like that very much

Thanks

stu90

#5 Post by stu90 »

This is a quick guide for adding the openbox windows manager menu to tint2 panel.

Step 1.
First download then install the xdotool-2.20110530.1-3.pet from the link below:
http://www.murga-linux.com/puppy/viewto ... h&id=43168

Step 2.
Now we need to edit the openbox rc.xml file to make a new key binding to open the openbox menu.
Navigate to /root/.config/openbox/rc.xml and open the file as text ( right mouse click open as text)

This is the code we need to add at around line 157:

Code: Select all

<keybind key="A-C-q">
  <action name="ShowMenu">
    <menu>root-menu</menu>
  </action>
</keybind>
After you have added this code it should now look like this:
Image

Step 3.
Adding the menu to tint2 panel - first navigate to the hidden directory /root/.config/tint2
In this directory make a new text file called tint2menu.desktop and paste the code below into it ans save.

When you click on the tint2menu.desktop file the openbox menu should open up on top of it.

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=tint-menu 
Icon=/usr/local/lib/X11/pixmaps/configuration48.png
Comment=tint-menu
Exec=xdotool key ctrl+alt+q
Type=Application
Categories=DesktopSettings
Note. The Icon= in the code above is the icon which will appear in the tint2 panel - this can be changed to some other icon by
entering the full path the the image / icon - Icon=/full/path/to/image.png

Step 4.
Now we need to add the menu to tint2rc file - still in the /root/.config/tint2 directory find the tint2rc
file and open it in a text editor then add the below code to the file:

Code: Select all

# launcher
launcher_padding = 5 4 5
launcher_background_id = 0
launcher_icon_size = 20
# start-launchers
launcher_item_app = /root/.config/tint2/tint2menu.desktop
# end-launchers
Note. On where you add the code will show the launchers in different locations on the panel - to have my menu on the left i add launchers code above taskbar and tasks.

Under the panel category in the same file you need to add an L for lauchers so it look like this: panel_items = LTSBC
Now save the /root/.config/tint2 file and restart the tint2 panel.

If all has gone well you should have a menu launcher in your panel.
Image

By making other .desktop files and adding them to lauchers in the tint2rc you can have multiple launchers that open your favorite application in the tint2 panel.

User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

#6 Post by oldyeller »

Hi
stu90

Thanks will give it a go and let you know when done.


thanks again

User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

#7 Post by oldyeller »

Hi stu90

I think I most of done something wrong [/img]
Attachments
image-2.jpg
jpg on what I did
(21.51 KiB) Downloaded 1954 times

stu90

#8 Post by stu90 »

oldyeller wrote:Hi stu90

I think I most of done something wrong [/img]
Hi oldyeller,
That looks correct - did you install the xdotool .pet and edit the openbox rc.xml file - does the openbox menu open when you click on the tint2menu.desktop file?

what does the command tint2 --version in the terminal return.

User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

#9 Post by oldyeller »

Hi stu90

Yes I did install the pet and the menu does come up when I hit the .desktop file.

This is what I got on the T, but I have tint2-0.7.1-1.pet
Attachments
image-1.jpg
(6.01 KiB) Downloaded 1935 times

stu90

#10 Post by stu90 »

Hello oldyeller,
Ah that is an old version of tint2 that doesn't support launchers - maybe try this tint2.pet for dpup.

http://www.smokey01.com/pemasu/pet_pack ... 2-0.11.pet

Back up your tint2rc file first - install .pet - start tint2 panel - then copy your backed up tint2rc file to /root/.config/tint2 - then restart panel.

User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

#11 Post by oldyeller »

Hello stu90,

installed the tint2 still does not work and when I hit the panel my tray for icons disappear and reappear when I hit it again.

This also happened on the older version.

stu90

#12 Post by stu90 »

Hi oldyeller,
Just had a look - it seems that .pet also does not support launchers.

Here is a .pet i made for tint2 thats does support launchers - i have also included the needed .desktop file for the openbox menu ( in directory /usr/share/tint2 ) and the menu is already setup it the tint2rc.

If you have any tint2rc files in /etc/xdg/tint2 and /root/.config/tint2 rename or move them so they do not conflict with the new tint2rc file.
Attachments
tint2_menu-0.11.pet
(82.77 KiB) Downloaded 787 times

User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

#13 Post by oldyeller »

Hello stu90


Thanks!!!

Post Reply