[openbox] How can I add an arbitrary String with an associated Script/Command in the Right Click Drop Down Menu List in OpenBox WM? Also, autostart applications every session?

u34 at net9.ga u34 at net9.ga
Sat May 20 08:19:12 EDT 2023


"Susmita/Rajib" <bkpsusmitaa at gmail.com> wrote:

> My dear illustrious Team Leaders and Senior members of openbox ML,
> 
> A simple query.
> 
> I have a working debian-menu reflecting the stored menu file in
> /var/lib/menu-xdg/menus/debian-menu.menu
> 
> I read the page http://openbox.org/wiki/Help:Menus.
> 
> Searching the internet, I tired to add a menu in extraScripts.xml in
> ~/.config/openbox/. But failed to have it displayed upon right click
> with $sudo update-menus.
> 
> -------------------Begin Lines----------------------
>    <menu id="extras" label="ExtraScripts">
>       <menu id="my-scripts-menu" label="My Scripts">
>          <item label="My Script">
>             <action name="Execute">
>                # <command>~/my_script.sh</command>
> <command>true</command>
>             </action>
>          </item>
>       </menu>
>    </menu>
> -------------------Begin Lines----------------------
> 
> Right clicking on the desktop I find
> /var/lib/menu-xdg/menus/debian-menu.menu being executed and the right
> click drop down menu, sub-menu list appearing.
> 

I have only superficial acquaintance with openbox.

Where is that action binds to a mouse button? I would first try with a 
constant, meaningles, string. Just to see that part is working. It looks 
to me the simpler part of what you want.
Basically, I guess that having open box do what you want is more complicated 
than what you imagine. You need openbox to read the output of your script.  
It could be you should look at openbox pipe capability. 
http://openbox.org/wiki/Help:Menus . I am not familair with that either.

I hope that help. I am more guessing than writing out of knoweldge.

--
u34 

> I want to add my personal scripts in this list.
> 
> I also want to autostart some applications upon every session.
> 
> How to achieve these objectives?
> 
> Best wishes,
> Rajib B
> _______________________________________________
> openbox mailing list
> openbox at icculus.org
> http://icculus.org/mailman/listinfo/openbox


More information about the openbox mailing list