Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 23 Nov 2014, 10:52
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
How to make a menu in tint2?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [13 Posts]  
Author Message
oldyeller


Joined: 15 Nov 2011
Posts: 818
Location: Mishawaka IN

PostPosted: Tue 06 Mar 2012, 18:06    Post subject:  How to make a menu in tint2?  

Hello

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


thanks
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4329
Location: Gatineau (Qc), Canada

PostPosted: Wed 07 Mar 2012, 02:01    Post subject:  

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.php?search_id=863447665&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.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Wed 07 Mar 2012, 03:13    Post subject:  

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.
Back to top
View user's profile Send private message 
oldyeller


Joined: 15 Nov 2011
Posts: 818
Location: Mishawaka IN

PostPosted: Wed 07 Mar 2012, 12:49    Post subject:  

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
Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Fri 09 Mar 2012, 09:13    Post subject:  

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/viewtopic.php?mode=attach&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:
<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:


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:

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

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


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.
Back to top
View user's profile Send private message 
oldyeller


Joined: 15 Nov 2011
Posts: 818
Location: Mishawaka IN

PostPosted: Fri 09 Mar 2012, 09:53    Post subject:  

Hi
stu90

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


thanks again
Back to top
View user's profile Send private message 
oldyeller


Joined: 15 Nov 2011
Posts: 818
Location: Mishawaka IN

PostPosted: Fri 09 Mar 2012, 10:32    Post subject:  

Hi stu90

I think I most of done something wrong [/img]
image-2.jpg
 Description   jpg on what I did
 Filesize   21.51 KB
 Viewed   1552 Time(s)

image-2.jpg

Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Fri 09 Mar 2012, 10:46    Post subject:  

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.
Back to top
View user's profile Send private message 
oldyeller


Joined: 15 Nov 2011
Posts: 818
Location: Mishawaka IN

PostPosted: Fri 09 Mar 2012, 11:44    Post subject:  

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
image-1.jpg
 Description   
 Filesize   6.01 KB
 Viewed   1522 Time(s)

image-1.jpg

Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Sat 10 Mar 2012, 02:15    Post subject:  

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_packages-dpup/tint2-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.
Back to top
View user's profile Send private message 
oldyeller


Joined: 15 Nov 2011
Posts: 818
Location: Mishawaka IN

PostPosted: Sat 10 Mar 2012, 10:12    Post subject:  

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.
Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Sat 10 Mar 2012, 11:37    Post subject:  

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.
tint2_menu-0.11.pet
Description 
pet

 Download 
Filename  tint2_menu-0.11.pet 
Filesize  82.77 KB 
Downloaded  401 Time(s) 
Back to top
View user's profile Send private message 
oldyeller


Joined: 15 Nov 2011
Posts: 818
Location: Mishawaka IN

PostPosted: Sat 10 Mar 2012, 15:10    Post subject:  

Hello stu90


Thanks!!!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0696s ][ Queries: 13 (0.0039s) ][ GZIP on ]