Karabiner-elements: Force Input Source

Created on 21 Sep 2016  Â·  5Comments  Â·  Source: pqrs-org/Karabiner-Elements

How to use VK_CHANGE_INPUTSOURCE_ENGLISH from old Karabiner?

stale

Most helpful comment

My config to restore Force input source is:

  • BetterTouchTool(BTT) with triggers for shift down -> shift up sequence to prevent any shift + letter misuse. -> remap to {"⌘", "⌥", "⌃"} + [ and ] accordingly.
  • Hammerspoon to force keyboard input source:
local hyper_super = {"⌘", "⌥", "⌃"}
hs.hotkey.bind(hyper_super, "[", function()
    hs.keycodes.setLayout("Russian - PC")
end)
hs.hotkey.bind(hyper_super, "]", function()
    hs.keycodes.setLayout("Australian")
end)

Works smooth.
BTT config attached
btt_config.zip

All 5 comments

I think overlaid modifiers aren't implemented yet. ;)

My config to restore Force input source is:

  • BetterTouchTool(BTT) with triggers for shift down -> shift up sequence to prevent any shift + letter misuse. -> remap to {"⌘", "⌥", "⌃"} + [ and ] accordingly.
  • Hammerspoon to force keyboard input source:
local hyper_super = {"⌘", "⌥", "⌃"}
hs.hotkey.bind(hyper_super, "[", function()
    hs.keycodes.setLayout("Russian - PC")
end)
hs.hotkey.bind(hyper_super, "]", function()
    hs.keycodes.setLayout("Australian")
end)

Works smooth.
BTT config attached
btt_config.zip

not sure why would I need to shift down -> shift up sequence to prevent any shift + letter misuse
otherwise works perfectly.

UPD: in betterTouch it is important to set "required" checkbox for "Cmd-Up" key (which clear by default)

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.

Was this page helpful?
0 / 5 - 0 ratings