<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 28, 2014 at 7:38 PM, Aleksandrina Nikolova <span dir="ltr"><<a href="mailto:infinite.craziness@gmail.com" target="_blank">infinite.craziness@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>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:</div>


<div><br></div><div>xprop -id <win-id> -format _NET_WM_ALLOWED_ACTIONS 32a -set _NET_WM_ALLOWED_ACTIONS "_NET_WM_ACTION_BELOW"</div><div><br></div><div>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?</div>


<div>If it's of any importance, I start openbox with:</div><div><br></div><div>exec ck-launch-session dbus-launch --sh-syntax --exit-with-session openbox-session</div></div></blockquote><div><br></div><div>You can put your actions inside an if clause. It lets you use the title for example, but not all possible properties: <a href="http://openbox.org/wiki/Help:Actions#If">http://openbox.org/wiki/Help:Actions#If</a></div>

<div><br></div></div></div></div>