It is easy to customize the Openbox menu in Slitaz to provide multiple, editable menus.
First rename your ~/.config/openbox/menu.xml to something like ~/.config/openbox/menu-old.xml so it is kept as a backup and is not lost.
Now create three new files as follows:
~/.config/openbox/menu.xml see http://www.kdworld.uk7.net/links/computers/menu.xml.txt
~/.config/openbox/menu1.xml see http://www.kdworld.uk7.net/links/computers/menu1.xml.txt
~/.config/openbox/menu2.xml see http://www.kdworld.uk7.net/links/computers/menu2.xml.txt
Enjoy.

Edit the Openbox Menu
(15 posts) (6 voices)-
Posted 13 years ago #
-
Here is an improved right click Openbox menu.
First rename your ~/.config/openbox/menu.xml to something like ~/.config/openbox/menu-old.xml so it is kept as a backup and is not lost.
Now create four new files as follows:
~/.config/openbox/menu.xml
http://www.kdworld.uk7.net/links/computers/menus/menu.xml.txt
~/.config/openbox/menu1.xml
http://www.kdworld.uk7.net/links/computers/menus/menu1.xml.txt
~/.config/openbox/menu2.xml
http://www.kdworld.uk7.net/links/computers/menus/menu2.xml.txt
~/.config/openbox/menu3.xml
http://www.kdworld.uk7.net/links/computers/menus/menu3.xml.txtI have added a shortcut in menu3.xml for editing all 3 menus in Geany.
If you write some bad xml, or for any other reason that stops the menu working, then find and edit the menus manually.
Remember to also correct menu.xml (as this might have had the error copied to it) and then reload Openbox (run: openbox --reconfigure).
That should flush out the error and get the menu working again.I posted a similar Openbox right click menu with icons, on the LXDE forums (screenshots included there).
http://forum.lxde.org/viewtopic.php?f=24&t=31525
For Slitaz however, it would require upgrading from Openbox 3.4 to Openbox 3.5, and I don't know whether that is easy to do.
I think adding icons to the menu speeds it up subjectively, as clicking an icon is quicker than selecting from a list of words, that require to be read.
Icons also enhance the appearance of the menu, making it much prettier.Posted 13 years ago # -
You could attempt it by installing the cooking version's openbox package by grabbing it from http://pkgs.slitaz.org/ - Not sure if it would work or not, but it's worth a shot if you're experimenting.
The safest way would probably be to compile and install Openbox 3.5 yourself and way less error prone.
Posted 13 years ago # -
Thanks.
I have a Slitaz hard disk installation.
I installed Openbox 3.5.0-2 which was confirmed by the package listings.
To do that I converted the Debian Sid .deb Openbox 3.5.0-2 to a tazpkg and then forced the install.
Great, I thought, until I logged out for the last time.
I could not login.
I will continue to experiment with this and try some of your suggestions.Posted 13 years ago # -
I tried compiling Openbox 3.5 ... which progressed in stages because I had to keep stopping to install required packages. This is the latest error message and I am having trouble fixing this one.
====================================================================================
checking for GLIB... yes
checking for PANGO... no
configure: error: Package requirements (pango >= 1.8.0 pangoxft >= 1.8.0) were not met:Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'freetype2', required by 'Pango FT2 and Pango Fc', not foundConsider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.Alternatively, you may set the environment variables PANGO_CFLAGS
and PANGO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
============================================================================================
What is the best thing to do, please? There are several alternatives suggested.
If I can't fix this then I don't know what to do.
Thanks.Posted 13 years ago # -
Okay.After looking for clues in each error message, I installed font-config, freetype-dev, xorg-libxft-dev, libxml2-dev and several others using the Slitaz package manager. The compiling finished ok. Then I did Make .... it worked. Then make install ... that worked, until this error halted the install.
=======================================================
make[1]: Leaving directory `/home/k1/Downloads/openbox-3.5.0/po'
make[1]: Entering directory `/home/k1/Downloads/openbox-3.5.0'
make[2]: Entering directory `/home/k1/Downloads/openbox-3.5.0'
test -z "/usr/lib" || ./install-sh -c -d "/usr/lib"
/bin/bash ./libtool --silent --mode=install /usr/bin/install -c obt/libobt.la obrender/libobrender.la '/usr/lib'
install: cannot stat 'obrender/.libs/libobrender.lai': No such file or directory
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/k1/Downloads/openbox-3.5.0'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/k1/Downloads/openbox-3.5.0'
make: *** [install-recursive] Error 1
===============================================
The clue here is 'obrender'.
Oh well, I will keep trying.Posted 13 years ago # -
configure: error: Package requirements (pango >= 1.8.0 pangoxft >= 1.8.0) were not met:
tazpkg search-pkgname pangoxft
tazpkg get-install pango
tazpkg get-install pango-dev
tazpkg search-pkgname freetype2.pc
tazpkg get-install freetype
tazpkg get-install freetype-devand so on searching for and installing tazpkgs containing the files the configure script asks for.
Check compile for errors,it failed to make libobrender which is an openbox file that install can't find.
Posted 13 years ago # -
Thanks Mojo.
That is basically what I did ... I used the Package Manager GUI instead to search and install.
Command lines are the quick way to do it.
So libobrender is 'an openbox file that install can't find'.
It is also one that I can't find.
I am a bit busy now, so I will get back to this when I next find the time and inclination.
Thanks for your help.
Slitaz is a great distro and I will return soon.
CheersPosted 13 years ago # -
Helo, sorry for bad english.
i found that converting and installing libobrender27-3.5.0-5.mga2.i586.rpm into tazpkg file can resolve the libobrender issue.
tx.
Posted 13 years ago # -
Thanks fazhar.
I will try again later this week.
Currently I am making lots of Slitaz 3.0 Tazlito LiveCDs.
Just to see whether I can customize exactly as I want.
It would be great to have Icons in the right click Openbox Menu.
So Openbox 3.5 is necessary for that.
Even with Openbox 3.5, some of the other Linux distros have had problems (now fixed) with missing menu icons.
ThanksPosted 13 years ago # -
Due to recent server changes by my host provider that I didn't like, I am closing the site
http://www.kdworld.uk7.net
The files are now stored on my new (identical) website
http://kdworld7.net
at
http://kdworld7.net/links/computers/slitaz/openbox/menus/menu.xml.txt
http://kdworld7.net/links/computers/slitaz/openbox/menus/menu1.xml.txt
http://kdworld7.net/links/computers/slitaz/openbox/menus/menu2.xml.txt
http://kdworld7.net/links/computers/slitaz/openbox/menus/menu3.xml.txt
KDPosted 12 years ago # -
Can you make openbox menu the way it gets updated after each install, and includes all programs which are in 'start menu'?
I tried to do it acc. to openbox wiki, but with no success...Posted 11 years ago # -
@tazpider
"Can you make openbox menu the way it gets updated after each install, and includes all programs which are in 'start menu'?"Hello
Yes I managed to do that with Openbox Ubuntu see the following topic at Linux Village.
http://linuxvillage.net/index.php/topic,58.0.html
For the "update after install menu item" I used the default menu code that is included when you install Openbox Ubuntu.
See menu3.xml in my Linux Village post.
--------------------------------------
<menu id="desktop-app" label="Menu" icon="/usr/share/pixmaps/gnome-log.png" execute=" cat ~/.cache/menu.xml" />
--------------------------------------
Note: It might only work with Openbox Ubuntu from Linux Village.
I have not tried it with any other distros.KD
Posted 11 years ago # -
The Linux Village link in my last post has changed:
Old link: http://linuxvillage.net/index.php/topic,58.0.html
New Link: http://forum.linuxvillage.org/index.php/topic,58.0.html
Please use the new link, it is the same page but Linux Village moved it.
It has screenshots of the auto updating menu.
Note: It might only work with Openbox Ubuntu from Linux Village.
I have not tried it with any other distros.
KDPosted 10 years ago # -
Interesting method. I didn't actually try it so I won't knock it. My own efforts have been to have a main menu with the most often used programs on it, and to have a submenu of personal choices, and a submenu of all programs installed, and a submenu for settings. Obviously the main menu is bound to one mouse button and one of the other menus hooked to the other. I suppose the personal menu would be a good choice to hook in there, but in the system I was creating I was trying to make it as consistent as possible with the other desktop window managers being used in that distro.
But anyway it was interesting to see your cp and reconfigure approach.
Thanks for posting it...
Posted 10 years ago #
Reply
You must log in to post.