Discussion:
[openbox] Disabling actions for certain windows matched by their name (or otherwise)
Aleksandrina Nikolova
2014-05-28 17:38:28 UTC
Permalink
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
_NET_WM_ALLOWED_ACTIONS "_NET_WM_ACTION_BELOW"

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20140528/7ec1b4bd/attachment.html>
Dana Jansens
2014-05-28 22:35:52 UTC
Permalink
On Wed, May 28, 2014 at 7:38 PM, Aleksandrina Nikolova <
Post by Aleksandrina Nikolova
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
xprop -id <win-id> -format _NET_WM_ALLOWED_ACTIONS 32a -set
_NET_WM_ALLOWED_ACTIONS "_NET_WM_ACTION_BELOW"
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?
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:
http://openbox.org/wiki/Help:Actions#If
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20140529/e33188a0/attachment.html>
Loading...