Recently i’m stumbled upon something. It’s an urgent matter. In my current openbox setup, I’m using vala-appmenu-plugin in xfce panel. The reason is simple, i want to get more space without losing important information from my panel like netspeed, notification, and other important things. With appmenu-plugin i can get rid menubar on all over my apps and get that tiny space back, but i’m not satisfied. That title bar under my panel looks so ugly.
(Read JoJolion, thanks)
In openbox we can’t get rid the title bar. You can remove the border and the window action button, but that’s it. Yeah, we can remove it with provided
undecorate window action. That means i’ve to undecorate it everytime i maximize a window. How ridiculous! Btw, in xfce they have option to hide title bar whe maximized.
Okay, there is two tricky options that can be done by default openbox setting.
- Undecorate all windows when appears
- Toggle window decoration when maximized
The first option is not the one that i wanted. The behaviour that i want is the one in xfce, it only hide the title bar when maximized. I want to have a nice small title bar on my window when it’s not maximized.
The second option also out of question. It certainly can do the job. But, duh it’s complicating my
rc.xml file. Also if a window undecorated, when it maximized, it will be decorated.
Orcsome is a scripting extension for NETWM compilant window managers written in python. With it we can extend wm fuctions. So, I can create script to do what I want, undecorate window when maximized and undecorate window if not maximized. Fortunately someone has write the configuration for that. Below is the configuration that i found.
from orcsome import get_wm
Copy that to
Now, what you need to do is install orcsome and run it at startup. You can install orcsome with
pip. Because orcsome written with
python2 and archlinux that I use is using
python3 by default, I install it with
$ pip2 install orcsome command. If you are using debian devariative,
pip is the right command.
Here’s my current wm behaviour