openbox
openbox copied to clipboard
Execute an action when ForEach failed to find a match
Whenever ForEach runs it allows to execute else branch for a query but it does it for each client that failed to match the query.
Please, add an option to execute certain action when none of the clients were able to match a query. It would effectively allow people to achieve "focus or run" functionality with configuration that looks something like that:
<keybind key="A-W-f">
<action name="ForEach">
<query target="default">
<class>RangerFm</class>
<desktop>current</desktop>
</query>
<then>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
<action name="Stop"/>
</then>
<none>
<action name="Execute">
<command>gtk-launch ranger</command>
</action>
</none>
</action>
</keybind>