1local sources = "com.apple.keylayout.ABC"
2
3local back_to_eng = function()
4 hs.keycodes.currentSourceID(sources)
5 Esc_bind:disable()
6 hs.eventtap.keyStroke({ "ctrl" }, "[")
7 Esc_bind:enable()
8end
9
10Esc_bind = hs.hotkey.new({ "ctrl" }, "[", back_to_eng):enable()