Is it possible to change keyboard layout with command+shift ?
For now exist three ways for this, I recommend to wait version 11.2 with native Karabiner-Elements feature for changing keyboard layout's (input sources)
NEWS 11.2 beta
Now 11.3 is available. Where can I find examples for changing keyboard layout with command+shift?
If you need just changing keyboard layout with command+shift , then use simple mapping to macOS shortcut (default Ctrl+Space and Ctrl+Opt+Space)
Just configured Karabiner 11.4.0 to map Cmd + Shift to Cmd + e which is previous language source in my Keyboard shortcuts. Full description is here:
If your keyboard layouts doesn't change from time to time (ex. you have 2-3 languages you use) - you can tell Karabiner to switch languages without messing with System Preferences:
@rtm-ctrlz @vsalex thank you sooo much 馃憤 made rotation for 2 languages (en->ru->en), for lazy persons - https://gist.github.com/kolyambo/345b3fa9f5463f136e880e4166636123
Or can just set something like F19 to toggle keyboard layout in System Preferences and then map your shortcut to F19. For two languages it will just toggle back and forth anyway, no need for input_source_if.
If you have solved your problems close issues, there is 790 issues. And changing keyboard layout is not one of them :) Many examples exists already
With the latest solution (https://gist.github.com/kolyambo/345b3fa9f5463f136e880e4166636123) everething it's almost perfect but language is switching when I press some more complex hotkeys like command+shift+P (means some menu in sublime, runs menu but changes keyboard layout too).
So, I changed "to" to "to_if_alone" and now it seems fine.
https://gist.github.com/knutov/ed597881b758058c50d73ac8121d498d
Should we add this solution to https://pqrs.org/osx/karabiner/complex_modifications/ ?
@knutov Using latest karabiner with your gist, but there is problem - can't use screenshot function when holding cmd+shift, pressing 4 or 3 with cmd+shift held down results in cmd+3 or cmd+4.
Any idea how to fix this?
I can go shift then cmd+4
But can't go cmd then shift+4 like I usually able to with punto switcher software for example.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@Dreamisdead I did not find the solution, so I have to teach myself to use command+space instead :(
@rtm-ctrlz Thank you so much, your config worked for me! However I've got @Dreamisdead problem with shift+cmd+4. I'll try to look into solving it.
Plus probably I should add that this config works for cmd+shift, but not in other way around. Anyway I'm happy that it works at all, it was a pain to ctrl+space for each language toggling.
If somebody will look for a solution to make old keys behave same as usual when not pressed alone. Check my gist https://gist.github.com/noma4i/91765f432f777c690aa3bddae37cfe3e
Idea is to bypass existing key while having additional rule.
@knutov Solution still works.
Interestingly, I use usual PC Keyboard (A4Tech) and I remapped Option<->Command for "Karabiner VirtualHIDKeyboard".
Still, the Karabiner seems to ignore that and your particular script reacts to physical press to Win+Shift combination.
And thanks to that physical press of Shift+Alt+3 works for me for screenshots (Btw I also physically swapped plastic key caps on the keyboard).
Most helpful comment
If your keyboard layouts doesn't change from time to time (ex. you have 2-3 languages you use) - you can tell Karabiner to switch languages without messing with
System Preferences: