[openbox] Executing two action commands
Mikael Magnusson
lists at bak.och.fr.am
Sun Aug 17 09:04:51 EDT 2008
On Sun, 17 Aug 2008, Sy Ali wrote:
> http://icculus.org/openbox/index.php/Help:Actions#Execute
>
> Global Actions > Execute says:
>
> ... no other shell expansions or scripting syntax may be used in the
> command unless they are passed to the sh command. Also, the &
> character must be written as & in order to be parsed correctly.
>
> I need an example of something which needs &
> I need an example of using 'sh'
>
> Is this the method for executing two commands with one hotkey?
>
> I could use a script, but I'd rather have all commands within the xml itself.
>
>
>
> I played around with various && type combinations, but I
> gather that this won't work and I need to use 'sh'. However, I'm only
> vaguely aware of what that means, and I've been unable to google my
> way to an answer.
>
> I'm trying to do an openbox-compatible version of this:
>
> <keybind key="A-F5">
> <action name="Execute">
> <command>openbox --reconfigure && xrefresh</command>
> </action>
> </keybind>
<keybind key="A-F5">
<action name="Execute">
<command>openbox --reconfigure</command>
</action>
<action name="Execute">
<command>xrefresh</command>
</action
</keybind>
--
Mikael Magnusson
More information about the openbox
mailing list