Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving/resizing floating windows with keybinds? #18

Closed
vaskark opened this issue Aug 24, 2019 · 7 comments · Fixed by #35
Closed

Moving/resizing floating windows with keybinds? #18

vaskark opened this issue Aug 24, 2019 · 7 comments · Fixed by #35
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@vaskark
Copy link

vaskark commented Aug 24, 2019

Hi. I'm playing with your wm and am wondering if it's possible to move and resize windows. In the config there is:

bindsym $Mod+h navigate_left

So I tried

bindsym $Mod+Shift+h move_left

But that didn't work. I'm just going off what I've seen other tiling wm's do, like i3.
Anyhoo, great work. Thanks.

@aesophor
Copy link
Owner

aesophor commented Aug 25, 2019

Hi! It is currently not possible to resize tiling windows, as I haven't come up with a way to implement this feature (Do you mean the same as #16?)

For now, only floating windows can be moved / resized :

  • win/command key + mosue left btn -> move
  • win/command key + mouse right btn -> resize

This win/command key can be changed here, if you like to use Alt, you can change it to Alt. I'll integrate this to config.
https://github.com/aesophor/Wmderland/blob/master/src/window_manager.cc#L127

Mask Value Key
Mod1Mask 8 Alt
Mod2Mask 16 Num Lock
Mod3Mask 32 Scroll Lock
Mod4Mask 64 Windows
Mod5Mask 128 ???

Thanks!

@vaskark
Copy link
Author

vaskark commented Aug 25, 2019

Thanks for replying. It's a great wm. Good luck with it!

@aesophor
Copy link
Owner

Thank you for your feedback! You are so kind! 😸

@aesophor aesophor added the duplicate This issue or pull request already exists label Aug 26, 2019
@aesophor
Copy link
Owner

aesophor commented Sep 15, 2019 via email

@aesophor aesophor changed the title Moving/resizing windows? Moving/resizing windows with keybinds? Sep 15, 2019
@aesophor aesophor added enhancement New feature or request good first issue Good for newcomers and removed duplicate This issue or pull request already exists labels Sep 15, 2019
@aesophor aesophor changed the title Moving/resizing windows with keybinds? Moving/resizing floating windows with keybinds? Sep 15, 2019
@vaskark
Copy link
Author

vaskark commented Sep 15, 2019

@aesophor I made a new polybar config with the xworkspaces module and it works great. Many thanks. I notice that this module has all workspaces visible at once. Does the i3 modules do that, too? That one only displays ws's when they are populated, it seems.

As for resizing, some windows (like nautilus and other gtk windows) are very easy to resize - the cursor changes to an arrow at the window's edge -- no right-click necessary. Its terminal windows that are hard to resize (and probably some others).

Anyhoo, many thanks. It's a neat little wm.

@aesophor
Copy link
Owner

@vaskark Thank you! This makes me so happy to read 😄

To make the xworkspaces module works like i3, make the following change to your polybar config:

label-empty = %index%

to

label-empty =

And then only active workspace(s) will be displayed. Workspaces without windows will not be displayed at all :)

aesophor added a commit that referenced this issue Feb 28, 2020
Add support for moving / resizing floating windows with keybinds #18
@aesophor
Copy link
Owner

This feature has been implemented in #35. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants