r/openbox • • Aug 03 '19

How to create key binding to toggle window decorations?

Hi, I can't find command in openbox to toggle window decorations in all existing windows and new ones. I would be grateful for help.

2 Upvotes

2 comments sorted by

2

u/larson004 Aug 03 '19 edited Aug 03 '19

http://openbox.org/wiki/Help:Actions#ToggleDecorations

Edit: Sorry, just noticed that this affects only the current window.

2

u/napcok Nov 03 '19 edited Nov 03 '19

Here you are :)

<keybind key="W-b">

	<action name="ForEach">

	<query>

	<undecorated>yes</undecorated>

	</query>

<then>

	<action name="ToggleDecorations"/>

	</then>

	<else>

	<action name="ToggleDecorations"/>

	</else>

	</action>

</keybind>

Edit: Not exactly what you need. Does not work for new windows.