RectangleWin icon indicating copy to clipboard operation
RectangleWin copied to clipboard

Shortcuts occupied by Win11

Open Yuanruili opened this issue 1 year ago • 11 comments

Shortcuts of win+alt+arrow keys are occupied by Win11, even when the "Snap windows" disabled in settings. Could it be solved? Thank you!

Yuanruili avatar Sep 13 '24 01:09 Yuanruili

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.

ahmetb avatar Sep 13 '24 04:09 ahmetb

am not a go programmer can you do that,i want to setup alt+arrow keys.

ADORoss avatar Nov 25 '24 12:11 ADORoss

i changed it in the code from main.go file and build it...Thanks

ADORoss avatar Nov 25 '24 13:11 ADORoss

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)?

ADORoss avatar Nov 26 '24 14:11 ADORoss

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.

asheehan avatar Dec 11 '24 18:12 asheehan

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.

ahmetb avatar Dec 11 '24 18:12 ahmetb

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.

ADORoss avatar Jan 20 '25 14:01 ADORoss

The builtin snapping works with keyboard buttons win+arrow keys, and is decent enough, no?

ahmetb avatar Jan 20 '25 16:01 ahmetb

@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.

matti avatar Feb 01 '25 23:02 matti

Any updates to this one, to remove the built-in shortcuts in Win11? I'd rather use Rectangle.

woopstar avatar Apr 22 '25 07:04 woopstar

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

veziop avatar Oct 25 '25 11:10 veziop