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

[FEATURE]: Resize and move modes #63

Open
gikari opened this issue Sep 26, 2021 · 2 comments
Open

[FEATURE]: Resize and move modes #63

gikari opened this issue Sep 26, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@gikari
Copy link
Member

gikari commented Sep 26, 2021

Summary

Some tiling WM have a so-called resize mode - it is when you press some key, and then you can use arrows to adjust the window width.

A clear and concise description of what you want to happen

KWin already have a resize mode (see Resize Window shortcut). It is just Bismuth is not reacting properly to resize events. Bismuth should try to react to resize events and adjust the layout dynamically. Now it is working for the mouse, but not the keyboard resize.

A clear and concise description of any alternative solutions or features you've considered.

No response

Additional info

KWin also has a move mode, theoretically, if we can distinguish between mouse window drag and move mode drag we can implement this as well.

@gikari gikari added the enhancement New feature or request label Sep 26, 2021
@gikari gikari changed the title [FEATURE]: Resize mode Sep 26, 2021
@bladedvox
Copy link
Contributor

bladedvox commented Sep 27, 2021

In my case, both modes work well enough, but they're limited to the arrow keys. I suppose it would be nice if we could somehow get it working with HJKL as well.

In both of these cases, we have the individual Actions and engine methods to do these with whatever keys the user wants. Are you thinking to add a bind for the specific mode and then use HJKL and/or the arrow keys to manipulate the window, then press Space or Enter and exit the mode?

@gikari
Copy link
Member Author

gikari commented Sep 27, 2021

In my case, both modes work well enough, but they're limited to the arrow keys. I suppose it would be nice if we could somehow get it working with HJKL as well.

For me they don't work well. The resize mode does not rearrange the other windows when resizing. The move mode requires you to press up and down too many times.

HJKL support could be added upstream. I do not think the upstream would mind.

Are you thinking to add a bind for the specific mode and then use HJKL and/or the arrow keys to manipulate the window, then press Space or Enter and exit the mode?

Yes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
2 participants