The basic Openbox Root Menu gets a lot of undeserved criticism primarily because it seems to be always presented in distros in a minimal form that does not automatically display a new app, that is, as a static menu. Many distos have tried remedying this apparent deficiency, but always with a cost in simplicity and a loss of some of the advantages of an easily edited up-front static menu. Others add GUI tools to configure the Root Menu, but, in my opinion, these are more clumsy and limited than just directly editing the base files, of which there are only 3: menu.xml, rc.xml and autostart.sh. A computer-wide (all-users) copy of these files is located in /etc/xdg/openbox, and each user has his version in ~/.config/openbox.
|Chart 1. Openbox Menu Template|
The skeleton of all openbox menus is shown in Chart 1 above. As you can see a menu consists of 3 parts, top, bottom and entries ("..." in the chart). The only parts in the top and bottom that are ever edited are the menu id and label, with the two restrictions that two menu ids are never the same and for the Root Menu:
menu id="root-menu" label="Openbox 3".
The important piece here is the "menu id". Once chosen, always be consistent in using that menu id for that menu, and never give two different menus the same menu id.
Candidates for the "..." position (entries) in Chart 1 are normally of 3 types:
(1) An app or places launch code;
(2) The launch code for another basic menu;
(3) The launch code for another menu generated by a computer script (pipemenu).
The template for an app or places launcher along with 2 examples are shown in Chart 2 below:
<item label=" " icon=" ">|
<item label="geany" icon="geany">|
<item label="downloads" icon="folder_download">|
pcmanfm --new-win "file:~/Downloads"
|Chart 2. App and Places Launcher Menu Entry Examples|
The template for adding a basic menu to another menu is as follows:
<menu id=" " label=" " icon=" " />;
<menu id="systeminfo" label="System Information" icon="applications-system" />.
So adding, removing or editing here requires a label (name), icon (if used) and menu id. The submenu format is exactly as in Chart 1 with the same name as the menu id and with a .xml suffix. It should be put into ~/.config/openbox. So the "System Information" example just given would be named systeminfo.xml and would have the address ~/.config/openbox/systeminfo.xml. For each static basic submenu put in the Root Menu, two lines, as illustrated by the image on the right for the Root Menu in Sparky-After, need to be entered in ~/.config/openbox/rc.xml.
It is worth noting that static submenus can be put directly into the Root Menu, so, avoiding a second file and putting the 2 lines in rc.xml, at the expense of a larger menu.xml file. To do this, remove
the backslash (\) at the end of the menu introduction, follow with the items and finish with </menu>. For the System Information example, this would look like the following (minus displaying the items):
<menu id="systeminfo" label="System Information" icon="applications-system">
The template for adding a computer generated menu (pipemenu) to another menu is as follows:
<menu id=" " label=" " execute=" " icon=" " />;
<menu id="desktop-app-menu" label="Applications" execute="openbox-menu" icon="applications-internet" />.
So adding, removing or editing here requires a label (name), icon (if used) and an execute for launching the outside menu generator, which in the example is openbox-menu. Openbox-menu can be installed using synaptic or apt-get:
sudo apt-get install openbox-menu.
It is an application that regularly generates a new (complete) menu based on the .desktop files found on the computer, and so it nicely fills the gap left by the Root Menu not automatically putting new apps on the menu. Openbox-menu can be also used to launch special desktop menus, some of which are usually stored in /etc/xdg/menus in most Debian-based distributions. The open sub-menu labeled "Applications" in the Sparky-After image above is the result of using openbox-menu to launch the lxde-applications.menu by putting the following entry into the Root Menu:
<menu id="desktop-app-menu" label="Applications" execute="openbox-menu lxde-applications.menu" icon="/usr/share/icons/applications.png" />.
Getting a dynamical general apps menu is a big thing in upgrading the classical static openbox menu. However, it is also nice to be able to easily construct special static submenus. The Sparky-After image above shows a Root Menu with 17 submenus of which 5 are dynamical in nature and 12 are basic menus constructed for my own purposes. The latter would have been hard to do with the menus in distributions with other window managers. Four of the basic submenus have their bodies written directly into the Root Menu as just described, and four of the dynamical ones are generated with pipemenus already installed in Sparky. For more information on menus see Openbox Menu.
My desktop wallpaper is a slide show of nice pictures (See Wallpaper Changer.). Therefore, I try to keep icons, panels, docks, conky, etc at a minimum. The best way to achieve this end is to use the Dock app that comes with openbox and which can be configured by going to the Dock section in Obconf. The openbox dock is invincible except for the applets put on it. I generally use wmdocker applets, which are totally compatible with the Openbox Dock. See Openbox Dock for more information. The key applets to use are wmdrawer, whose size (128x64 pixels maximum) and placement can be configured, and wmsystemtray. To install:
Wmsystemtray is a system tray that puts items in groups of 4 which can be rotated by clicking the arrows. Thus, the occupied desktop space is never greater than 64x64 pixels. Using a dock system tray frees up the space a tray would normally take on a panel. The other 2 wmdocker applets in the image above are wmcalclock and wmstickynotes.
Because I use wmdrawer and wmsystemtray I only need a panel for its taskbar and desktop pager. The panel that is perfect for this as well as offers other features as a bonus is fbpanel. Fbpanel is lightweight, has a very "clean" appearance including a very nice dynamical menu with a configurable static part for favorites, has a desktop pager that reflects the wallpaper, allows multiple panels simultaneously and allows every kind of
app launcher for which a launch command can be written. Holding down the control button and right clicking fbpanel brings up a GUI for configuring everything on it but adding launchers. For that you have to edit the
configuration file ~/.config/fbpanel/default. For more on fbpanel, see Fbpanel. To replace Tint2 with Fbpanel:
sudo apt-get install fbpanel sudo apt-get remove --purge tint2 .
Leafpad is an excellent simple text editor and worth keeping as a backup if you use a text editor often. However, something better endowed is needed if you do a lot of text editing, especially if html files are being edited; so:
sudo apt-get install geany .
Geany uses about 11 MG space.
To get a text editor that can directly edit root text files, use the newly installed geany (or leafpad) to open as root geany.desktop:
sudo geany /usr/share/applications/geany.desktop .
As a space saver and to make it easier to read, if ever opened again, first delete all the redundant languages and resave geany.desktop. Do this whenever a .desktop file is open, thus, freeing a fair amount of hard drive space over the long haul. Next, while the file is still open, edit it by replacing exec=geany %f with exec=gksudo geany %f . Save the file as a new file named geany-root.desktop. This puts geany-root in your menus. It can be used to directly open, edit and save text files owned by root. Just right click on a root text file and choose "open with geany-root". Next, do the same thing with pcmanfm.desktop, which may be called "file-manager", or something similar. Now, just "right clicking" on a "root folder" and choosing "open with pcmanfm-root" opens that folder in a window where anything in the folder can be opened, edited and saved with regular tools and in the regular manner.
My image viewer of choice is Mirage, because it is lightweight and includes the first editing tools - cropping, resizing, rotating and saturation adjustment - that everyone uses. In addition Mirage has slide show capabilities and a thumbnail bar. The heavier gpicview only views. So:
sudo apt-get install mirage sudo apt-get remove --purge gpicview .
Every worth-while Linux distro with the space and power to execute them should have Wine and Java installed. There are simply too many very good wine and java apps to ignore all of them. To install Wine, follow the instructions in Lxlinux Openbox Guide - Wine, and to install Oracle Java JRE, Lxlinux Openbox Guide - Oracle Java. To run Java apps, it should suffice to just install JRE, rather than the bigger JDK.
My complete photo editors of choice are either of two wine apps: PhotoFiltre or Faststone Image Editor.
Although quite heavy (78MB), vlc player is the premier audio-video device available to Linux. See Lxlinux Openbox Guide - Recording Audio for more about vlc. To install vlc:
sudo apt-get install vlc .
Hakerdefo has provided a terrific lightweight shell script, Poor Mans Radio Player (PMRP), for playing online fm radio. It is programmed with more than 200 stations spred over 20+ categories. The version utilizing vlc, pmrp-vlc, can be downloaded from this website using wget:
To install prmp-vlc, just follow the instructions given in the link. Pmrp-vlc has the advantage over prmp of being able to instantly record what's playing by clicking the vlc-record button.
For PDF reading, the lightweight Xournal is a better choice than qpdf, because it is also able to do lightweight editing. So:
sudo apt-get install xournal sudo apt-get remove --purge qpdf .
Obconf is available to pick general themes for the window manager. Another tool, lxappearance, is available to choose a GTK-theme. Lxappearance, when installed, is generally found in the Settings or Preference categories as "Customize Look and Feel", and the installed themes are listed in the Widget section. Apparently the window manager theme and GTK-theme can be chosen separately, which allows for "wild" combinations, for example, below is an image of a desktop with a Tron-Orange window theme (controls root menu and window borders) and the Brick GTK-theme (controls folder appearance, fbpanel menu +).