Following the template of another stack user I've bound a keyboard shortcut to toggle an application between hidden and fullscreen. The only problem is, no matter what application I apply it to, I have to manually focus it after it pops up. Here's the relevant portions of my config:

<keybind key="F10">
  <action name="Execute">
    <execute>wmctrl -x gvim -a gvim.alwayson -b toggle,fullscreen,hidden</execute>
<application name="gvim"

I've played with all the relevant-seeming openbox actions and wmctrl flags.


A wmctrl solution remains elusive. However xdotool and a bashscript can toggle any application in a single command, which can then be bound to a key.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.