Skip to content

Instantly share code, notes, and snippets.

View hansenz42's full-sized avatar
🤗
Happy Coding!

Hansen Zheng hansenz42

🤗
Happy Coding!
View GitHub Profile
@hansenz42
hansenz42 / hammerspoon自动切换输入法.lua
Last active February 4, 2021 13:35 — forked from ibreathebsb/hammerspoon自动切换输入法.lua
加入了启动应用时切换输入法的代码
local function Chinese()
-- 简体拼音
hs.keycodes.currentSourceID("com.apple.inputmethod.SCIM.ITABC")
end
local function English()
-- ABC
hs.keycodes.currentSourceID("com.apple.keylayout.ABC")
end