How to make a menu in tint2?
How to make a menu in tint2?
Hello
Would anyone be able to help me with a menu for tint2.
thanks
Would anyone be able to help me with a menu for tint2.
thanks
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.
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)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
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:
After you have added this code it should now look like this:

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.
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:
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.

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.
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>

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
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
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.

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.
Hi stu90
I think I most of done something wrong [/img]
I think I most of done something wrong [/img]
- Attachments
-
- image-2.jpg
- jpg on what I did
- (21.51 KiB) Downloaded 1954 times
Hi oldyeller,oldyeller wrote:Hi stu90
I think I most of done something wrong [/img]
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.
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
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
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.
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.
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.
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 810 times