include './counter.php'; ?>
Openbox
Introduction
Changelogs
Documentation
F.A.Q. |
Getting Started With Menus In OpenboxHaving obtained and started openbox, the first thing that most users will want to do is create their own custom menu. (Note if you don't want to read this there is an example menu file at the bottom which you can copy and probably figure out how to edit it for your needs.) To create a custom menu create a file called menu inside your ~/.openbox directory. In this file we will create your menu. Your Menu is started with the [begin] command and ended with the [end] command. The [begin] command takes an argument in brackets which is the name of the menu. Submenus can be started with the [submenu] command which also takes the name of the submenu as an argument and is also ended with the [end] command. A Simple MenuSo we begin with a simple menu [begin] (OpenBox)Notice that comments are started with # and continue to the end of the line. To use this menu for the first time you will have to restart openbox, but thereafter changes that you make to this file will take effect once you save it. Note: Submenu can also take a 2nd argument (in curly brackets) which is the string positioned on top of the menu, you can see this at work in the example menu file below in the styles submenu item. So far though our menu does not contain any commands that do any useful work, the most often used command is the [exec] command. The [exec] command takes two arguments in normal and then curly brackets. The first argument is the name of the menu entry, and the second argument is the command string to execute when this menu item is selected. For example [exec] (Mozilla) {mozilla}The first will create a menu item called Mozilla, which will execute mozilla when selected, and the second will create a menu item Xterm and executes the command xterm with the given arguments. Adding these to our menu file we get [begin] (OpenBox) Other CommandsOther commands are:
[submenu] (Settings) Example MenuSave the following in the file ~/.openbox/menu and then edit it for your needs.[begin] (OpenBox)Note: The commonbox menus mentioned in this are built by scripts in the Gentoo distribution. They will not exist on your system under any other. |