forge icon indicating copy to clipboard operation
forge copied to clipboard

feat: implement paper-wm like layout

Open jmmaranan opened this issue 4 years ago • 5 comments

When PaperWM layout is enabled, do that same thing!

jmmaranan avatar Oct 04 '21 00:10 jmmaranan

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>C which 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.

nobeh avatar Nov 13 '21 09:11 nobeh

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

jmmaranan avatar Nov 13 '21 12:11 jmmaranan

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)

jmmaranan avatar Nov 13 '21 12:11 jmmaranan

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! :)

jmmaranan avatar Nov 13 '21 13:11 jmmaranan

Looking forward to this. The addition of window resizing keybindings would be great!

n-patiphon avatar Jul 22 '22 05:07 n-patiphon