[openbox] Disabling actions for certain windows matched by their name (or otherwise)

Dana Jansens danakj at orodu.net
Wed May 28 18:35:52 EDT 2014

On Wed, May 28, 2014 at 7:38 PM, Aleksandrina Nikolova <
infinite.craziness at gmail.com> wrote:

> Greetings! I recently installed Openbox for the first time and am in the
> process of configuring it. I run it on its own without any DE. I am trying
> to prevent certain windows (matched by name or whatever) from closing,
> minimizing, resizing, etc via the keybindings (Alt+F4, etc). I couldn't
> figure out a way to use such conditional statements in the keybindings
> section; the only example of such I have seen is of the form "if window is
> shaded or minimized or...", not "if window name is...". I tried doing this
> with xprop by running:
> xprop -id <win-id> -format _NET_WM_ALLOWED_ACTIONS 32a -set
> to only allow these windows to be placed below others, but openbox seems
> to ignore this completely. Furthermore, when I close the window and reopen
> it, it emerges with the same id as before, but my changes are reset to
> their default values (that allow all actions for this window). I also tried
> removing the property WM_PROTOCOLS using xprop again, that is supposed to
> tell openbox not to manage this window at all as far as I could understand.
> Still no luck... Any ideas?
> If it's of any importance, I start openbox with:
> exec ck-launch-session dbus-launch --sh-syntax --exit-with-session
> openbox-session

You can put your actions inside an if clause. It lets you use the title for
example, but not all possible properties:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20140529/e33188a0/attachment.html>

More information about the openbox mailing list