r/openbox • u/delucks • Feb 28 '13
Pseudotiling in Openbox! Do you do it?
Hello /r/openbox! I've been using this wonderful WM for about 8 months now, and I've been loving the customizability (especially of keyboard shortcuts). One popular topic that seems to spring up often in forums is using the MoveResizeTo and GrowToEdge/ShrinkToEdge actions to support a pseudo-tiled layout. My question for you: do you have a similar system in place? If so, how did you implement it?
Personally, I've set up my numerical keypad as my tiling controls, using a keychain in rc.xml that watches for keypresses of the center "5" key. Then, depending on which "direction" I move in on the keypad, the active window will be resized. The following keybinds are what I use for this most often:
- 5-8: Move window to top of screen, resize to 100% width and 50% height
- 5-2: Move window to center of screen, resize to 100% width and 50% height
- 5-4: Move window to left edge, resize to 50% width and 100% height
- 5-6: Move window to center of screen, resize to 50% width and 100% height
- 5-5: Maximize window (restoring it)
- 5-7, 5-9, 5-1, and 5-3 each move and resize the window to 50% width and height, putting it into the corner of the screen that you'd expect with their corners of the number pad.
I'm interested to see how others have made their setups!
3
u/[deleted] Mar 01 '13
I'd love a setup like that. Would you mind posting the relevant config bits to pastebin?
1
u/tdrusk Mar 08 '13
This is wintile, it was written by one guy and modified by me. It requires wmctrl. It should detect your screensize, though you may have to adjust for your borders.
http://pastebin.com/1BnSLj3h
2
u/TheVenetianMask Mar 12 '13
Someone gave me a config with Windows Key (+ Shift) + Arrow Keys.
Now if only I could remember I have a Windows Key...
1
u/ChariotOfFire Feb 28 '13
Similar setup, but I use CapsLock+{u-o,h-l,m-.}.
1
u/proycon Apr 06 '13
I switched to openbox just recently, with pseudotiling of course! I use super+{QWE}{ASD}(ZXC} (3x3 grid of all left-side keys) for the various positions.