Mac-style Keyboard Bindings on a Windows Keyboard with Alt as Cmd #608
ubunatic
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
Glad to see the beta branch getting some love. I think the else arm in the # Alt L:
hold(Control_L)
.key_up(Alt_L) # alt may or may not be down. The kernel ignores duplicate events
# Alt L + Tab
key_up(Control_L) # ctrl is down if we pressed alt first, if not the kernel will ignore this anyway
.key_down(Alt_L) # the `Alt L` macro will call key_up as soon as `Alt L` is released
.hold(Tab) |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks for this! I was looking for a solution for Mac-style key bindings. But your link to your bindings file is wrong. There's no useful content there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, Tobi thanks for this great tool! @sezanzeb
I have tried different things over the years and having a working GUI + start and stop button makes a huge difference than fiddling with clunky config files. 🙇🏼
I have used input-mapper now for a few days and at first thought I could not get the mapping I needed. I was aiming for the following with Alt working like the MacOs Cmd key.
Quite a list and there are event some more things I needed while using my bindings.
But I think I got it actually working and have put my first version of a binding file here:
https://codeberg.org/ubunatic/dotfiles/src/branch/main/config/input-mapper-mac-bindings.json
It still has some bugs, such as the Alt key being stuck sometimes, resulting in Ctrl being pressed and not coming up. This does not happen often though.
One of the fancy things that worked was mapping Alt to Control and still keep both needed Alt + Tab bindings bound to Alt + Tab.
$alt
down, then release both and also release Alt.$alt
to keep Alt_L pressed.Not sure if it this over engineered. At least it works and all other attempts failed.
I had trouble with the Alt key being not held down and the app switcher not opening.
Also single Alt presses popped up the app menus, which you do not want when Alt becomes such a central command key.
Most other bindings are straight forward and I added anything that was missing when my muscle memory was looking for it.
If I update my bindings, I will also post an update here.
Let me know if or when there is a better approach to realize these bindings.
PS: I am a Mac Keyboarder for a year now and really prefer the Cmd over the Ctrl key for copy/paste and most commands. Using the thumb (on Alt) feels much better then the pinky or thumb (on Ctrl). I enter most commands one-handed now.
Beta Was this translation helpful? Give feedback.
All reactions