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

Shortcuts occupied by Win11 #8

Open
Yuanruili opened this issue Sep 13, 2024 · 8 comments
Open

Shortcuts occupied by Win11 #8

Yuanruili opened this issue Sep 13, 2024 · 8 comments

Comments

@Yuanruili
Copy link

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

@ahmetb
Copy link
Owner

ahmetb commented Sep 13, 2024

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.

@Md97SalahUddin
Copy link

Md97SalahUddin commented Nov 25, 2024

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

@Md97SalahUddin
Copy link

Md97SalahUddin commented Nov 25, 2024

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

@Md97SalahUddin
Copy link

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

@asheehan
Copy link

asheehan commented Dec 11, 2024

I did the same as @Md97SalahUddin above and changed it to just use alt + arrow keys. You can do that here:

RectangleWin/main.go

Lines 86 to 89 in 894e4d5

(HotKey{id: 1, mod: MOD_ALT | MOD_WIN | MOD_NOREPEAT, vk: w32.VK_LEFT, callback: func() { cycleEdgeFuncs(0) }}),
(HotKey{id: 2, mod: MOD_ALT | MOD_WIN | MOD_NOREPEAT, vk: w32.VK_RIGHT, callback: func() { cycleEdgeFuncs(1) }}),
(HotKey{id: 3, mod: MOD_ALT | MOD_WIN | MOD_NOREPEAT, vk: w32.VK_UP, callback: func() { cycleEdgeFuncs(2) }}),
(HotKey{id: 4, mod: MOD_ALT | MOD_WIN | MOD_NOREPEAT, vk: w32.VK_DOWN, callback: func() { cycleEdgeFuncs(3) }}),

Remove the MOD_WIN | and run the development steps in the README to generate a new binary.

@ahmetb
Copy link
Owner

ahmetb commented Dec 11, 2024

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.

@Md97SalahUddin
Copy link

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.

@ahmetb
Copy link
Owner

ahmetb commented Jan 20, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants