Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

sowm: Window splitting #76

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

sowm: Window splitting #76

wants to merge 3 commits into from

Conversation

Unixsys
Copy link

@Unixsys Unixsys commented Apr 25, 2020

 * 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 Unixsys mentioned this pull request Apr 25, 2020
@dylanaraps
Copy link
Owner

You will have to structure the PR like the others. See #57

@dylanaraps
Copy link
Owner

This looks great though, thanks!

@Unixsys
Copy link
Author

Unixsys commented Apr 25, 2020

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.

@dylanaraps
Copy link
Owner

👍

@remysucre
Copy link

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.

@Unixsys
Copy link
Author

Unixsys commented Jul 6, 2020

@remysucre This is exactly how I use this patch.

@remysucre
Copy link

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.

@Unixsys
Copy link
Author

Unixsys commented Aug 1, 2020

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

@serenevoid
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants