sowm icon indicating copy to clipboard operation
sowm copied to clipboard

sowm: Window splitting

Open Unixsys opened this issue 5 years ago • 9 comments

 * Add keybinds for splitting windows
  - Use vim keybinds with Win+Alt
  - Example: Win+Alt+h will split the window to the left


  - Note: this patch will *not* snap windows to corners of the screen.


Patch: https://patch-diff.githubusercontent.com/raw/dylanaraps/sowm/pull/76.patch Requested from issue #75.

Unixsys avatar Apr 25 '20 02:04 Unixsys

You will have to structure the PR like the others. See https://github.com/dylanaraps/sowm/pull/57

dylanaraps avatar Apr 25 '20 05:04 dylanaraps

This looks great though, thanks!

dylanaraps avatar Apr 25 '20 05:04 dylanaraps

Stylistic issues fixed. Let me know if there's anything further I can do. Sorry for the late response. Might want to close issue #75, as it requested this PR.

Unixsys avatar Apr 25 '20 23:04 Unixsys

:+1:

dylanaraps avatar Apr 26 '20 06:04 dylanaraps

A small trick I found: splitting full-screen windows gets you closer to actual tiling, as it also prevents the mouse from moving / resizing windows out of place.

remysucre avatar Jul 04 '20 01:07 remysucre

@remysucre This is exactly how I use this patch.

Unixsys avatar Jul 06 '20 00:07 Unixsys

Me too :) In fact, would you consider adding if (!cur->f) win_fs(arg); right before win_size in win_half? That pretty much creates a "tiling mode" whenever cur->f is true.

remysucre avatar Jul 06 '20 02:07 remysucre

I'm not going to add that, due to some people (me included) don't like all windows fullscreen all the time. However, thanks for your suggestion! :D

Unixsys avatar Aug 01 '20 18:08 Unixsys

I have tried extending the splitting functionality with gaps since a lot of people like myself love to have gaps (or useless gaps from dwm).

#113

serenevoid avatar Mar 04 '23 05:03 serenevoid