Leftwm: Is there a way to resize windows with a keybinding?

Created on 19 Nov 2020  路  4Comments  路  Source: leftwm/leftwm

DWM has MOD+L/H to make the master window bigger/smaller. Is there something i could do to replicate this in Left?

P.S. Love the project.

Most helpful comment

The closest that currently exist in LeftWM is resizing/moving the window by holding the mod key and pressing the Left/Right mouse buttons to move/resize windows. This feature has gotten a lot of love in the last release so if you aren't on latest you might want to check it out.

That being said, if there is enough interest in being able to resize/move without the mouse then lets add it.

All 4 comments

The closest that currently exist in LeftWM is resizing/moving the window by holding the mod key and pressing the Left/Right mouse buttons to move/resize windows. This feature has gotten a lot of love in the last release so if you aren't on latest you might want to check it out.

That being said, if there is enough interest in being able to resize/move without the mouse then lets add it.

@lex148 Movement is easy enough for now via combinations of Mod+Arrow and Mod+Ret. I would just really like to be able to quickly move X (below) for different tasks.
```
<--->
+--------------X--------------+
| | |
| | |
| | |
| +--------------+
| | |
| | |
| | |
+--------------X--------------+
<--->

I agree that resizing windows with keybindings would be great, it's a function I use all the time on other WMs.

I just implemented this for myself but it's the first time for me to modify rust code so its probably very bad style and not respecting some rust no-go's. as an inspiration I added a PR but somebody who knows what they are doing should probably redo that if others are interested :)

here is the PR: #158

EDIT: here is a screen capture of the result using 10% steps to increase and decrease the main window size

screen

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VuiMuich picture VuiMuich  路  3Comments

Stanislav-Lapata picture Stanislav-Lapata  路  6Comments

mautamu picture mautamu  路  7Comments

sillen102 picture sillen102  路  3Comments

b4skyx picture b4skyx  路  7Comments