feat: implement paper-wm like layout
When PaperWM layout is enabled, do that same thing!
Thanks for considering this. The most valuable feature for me on a PaperWM like layout are basically:
-
<Super>+|-to resize the current focused window in terms of width. Why? On a wide screen (and even more on a single-window mode), auto-tile would expand the focused window to full size. In addition, having the control to resize the current focused window next to others gives a good ability to lay out the windows. -
<Super><Shift>Cwhich allows me to drag the current focused window in to the center of the screen. This is very useful for productivity and focus and also quite ergonomic.
Hi @nobeh, sure thing! In the meantime for your 2nd note you can probably use the Super + C which does a float center toggle. I use it most of the time on a big screen for focusing. And then tile it back when done
For your 1st note, though not similar to paperwm, you can do the resize which comes with GNOME Alt + F8 as trigger then arrow keys to resize or using the mouse. However, I still wanted to take control of the resize with few keystrokes, same as yours: more on the ergonomics.
I am planning to refactor or add to the utility that builds/executes the commands in the window.js so it can be bound immediately to a shortcut. Then the actual layout behavior would be on another ticket that focuses on just preset layouts or change layout only behavior when a certain layout mode is selected. E.g Forge mode, PaperWM mode, etc maybe Fancy Zones (a special floating window layout but manually set via keyboard)
For what it's worth, PaperWM is a complex extension on its own (I applaud the authors for their work and looking at the readme and code - appreciate the nice and readable comments/structure) and I would be forging some of their features or do something similar. I am also trying to avoid though on making Forge very complex and harder to maintain because of the multitude of features. But we'll see! :)
Looking forward to this. The addition of window resizing keybindings would be great!