I am using LXDE and in my .config/openbox/lxde-rc.xml I have action for ALT-F4 defined:
<keybind key="A-F4"> <action name="Close"/> </keybind> This works, as expected, for all applications. When ALT-F4 is pressed, the window is closed.
I have one application, lets call it foo, which I would like to be unaffected by ALT-F4. i.e. when ALT-F4 is pressed, I want the window to stay open (the action should be completely ignored).
Is it possible to create such rule?
EDIT: Based on the answer from @Michael Homer I have added following into my .config/openbox/lxde-rc.xml:
<keybind key="A-F4"> <action name="If"> <title>foo</title> <then> <!-- Do nothing for foo --> </then> <else> <action name="Close"/> </else> </action> </keybind> This works great, but I would need to match foo or bar.
What would be the simplest solution to achieve that?