Shortcuts occupied by Win11
Shortcuts of win+alt+arrow keys are occupied by Win11, even when the "Snap windows" disabled in settings. Could it be solved? Thank you!
Yeah I noticed this when I upgraded as well. I didn't make the hotkeys configurable yet, but I'm open to alternative hotkeys that don't collide with anything. This is easy to change in the code and recompile with single "go build" command.
am not a go programmer can you do that,i want to setup alt+arrow keys.
i changed it in the code from main.go file and build it...Thanks
Though i used llm for solving the problem,I got interested in learning go as i am interested in learning a compiled lang.I know python and i know little bit C.Can you tell me how can i learn golang? The golang docs or other source(probably a video series)?
I did the same as @Md97SalahUddin above and changed it to just use alt + arrow keys. You can do that here: https://github.com/ahmetb/RectangleWin/blob/894e4d57ea3e1a10e25c6ae3efd0e910b0eb7cb5/main.go#L86-L89
Remove the MOD_WIN | and run the development steps in the README to generate a new binary.
I also upgraded to win11 and honestly the builtin hotkeys for snapping windows to corners is pretty good. Why do y'all still use this tool for? I appreciate insights so I can continue to refine it.
windows snap is pretty crap.It's configurable through mouse but not by keybinds.Powertoys also has snap layouts but doesnt give any keybind customization.The main power of this tool is giving me handle layouts to one-half,two-thirds,one-thirds with single keybinds.And the app is pretty fast.
The builtin snapping works with keyboard buttons win+arrow keys, and is decent enough, no?
@ahmetb hello again! exactly what @Md97SalahUddin said - I want my own keys and I want to cycle through some sizes like this:
https://github.com/user-attachments/assets/8fd5d22e-158e-43fb-8a3e-63548e386c30
I forked and changed the keys to my liking: https://github.com/matti/RectangleWin/commit/68fd9a350ba4905677314ec372a1cc2657fab11d
eg. so that I can hold shift+alt down and then left/right/up/down and more obscure quad pattern next to return on my finnish keyboard - (I've also remapped alt to be right control so that I can have mac style cmd+c cmd+v etc copy/paste with autohotkey)
Anyway hope my fork helps somebody - don't have time now to do any config.txt etc.
Any updates to this one, to remove the built-in shortcuts in Win11? I'd rather use Rectangle.
I also upgraded to win11 and honestly the builtin hotkeys for snapping windows to corners is pretty good. Why do y'all still use this tool for? I appreciate insights so I can continue to refine it.
I am interested in getting the 2/3 snaps because I just bought a ultrawide monitor. Sadly the win 11 shortcuts do not include 2/3 so I am very interested in this project. Will fork and apply the changes suggested by @asheehan