[openbox] Desktop Menu Bar of Pop-Up

Delcides F. Sousa Jr delcides at gmail.com
Tue Mar 17 10:12:10 EDT 2009


On Tue, Mar 17, 2009 at 6:23 AM, John <openbox at jelmail.com> wrote:
>
>> Have you considered any of fbpanel, xfce4-panel, or pypanel?
>>
>> -mpb
>>
>
> Yes I run pypanel now but maybe I am missing something. Currently it's just
> a task bar that shows running apps like on Windoze. If there is a panel app
> that I can add that becomes a drop down menu, and I can add several of them
> then I could make a menu bar. I looked but could not find anything. However,
> I am new to this :)
>
> I'll also look at the xdotool idea but I guess I need to add buttons to the
> panel and I'll have to work out how to do that first!

   I don't think pypanel is a good fit for what you want. You'd be
better off with fbpanel
or xfce4-panel. If you really want to stay with pypanel:
   - Create the desired menus ( I recommend obmenu - just use it like
"obmenu /path/to/menu.xml"). One file ( menu1,xml, menu2.xml, etc.)
per menu wanted. Pay attention to the id label field.
   - Edit your ~/.config/openbox/rc.xml file to include the menus:
under <menu>, put a
<file>/path/to/menu.xml</file> for every menu you created.
   - Now, go to the keyboard section of rc.xml. Assign a shortcut for each menu:

   <keybind key="C-S-1">
      <action name="ShowMenu">
        <menu>first-menu</menu>  <!-- put whatever id label you
defined for the menu -->
      </action>
   </keybind>

   - Almost finished: on pypanel create an app launcher with the command

                            xdotool key ctrl+shift+1

     It will simulate the keyboard shortcut when you press it and pop
up the desired menu.

   If that seems too much work, you could use fbpanel, where you can
create the menu directly on the panel ( see
http://fbpanel.sourceforge.net/docs.html) or xfce4-panel ( which uses
a nice gui for panel customizing).

Cheers,

Delcides.


More information about the openbox mailing list