Browse Source

feat: adjust hammerspoon

master
Ein Verne 2 years ago
parent
commit
49a98160d9
No known key found for this signature in database
GPG Key ID: 926634D64ACAD792
  1. 3
      hammerspoon/ime.lua
  2. 5
      hammerspoon/init.lua

3
hammerspoon/ime.lua

@ -25,10 +25,8 @@ local app2Ime = {
{'/Applications/Google Chrome.app', 'zh'}, {'/Applications/Google Chrome.app', 'zh'},
{'/Applications/DingTalk.app', 'zh'}, {'/Applications/DingTalk.app', 'zh'},
{'/Applications/KakaoTalk.app', 'zh'}, {'/Applications/KakaoTalk.app', 'zh'},
{'/Applications/Kindle.app', 'zh'},
{'/Applications/kitty.app', 'zh'}, {'/Applications/kitty.app', 'zh'},
{'/Applications/NeteaseMusic.app', 'zh'}, {'/Applications/NeteaseMusic.app', 'zh'},
{'/Applications/Lark.app', 'zh'},
{'/Applications/System Preferences.app', 'zh'}, {'/Applications/System Preferences.app', 'zh'},
{'/Applications/MindNode.app', 'zh'}, {'/Applications/MindNode.app', 'zh'},
{'/Applications/Obsidian.app', 'zh'}, {'/Applications/Obsidian.app', 'zh'},
@ -37,7 +35,6 @@ local app2Ime = {
{'/Applications/wechatwebdevtools.app', 'zh'}, {'/Applications/wechatwebdevtools.app', 'zh'},
{'/Applications/WeChat.app', 'zh'}, {'/Applications/WeChat.app', 'zh'},
{'/Users/einverne/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app', 'zh'}, {'/Users/einverne/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app', 'zh'},
{'/Users/einverne/Applications/JetBrains Toolbox/Android Studio.app', 'zh'},
{'/Users/einverne/Applications/JetBrains Toolbox/PyCharm Professional.app', 'zh'}, {'/Users/einverne/Applications/JetBrains Toolbox/PyCharm Professional.app', 'zh'},
} }

5
hammerspoon/init.lua

@ -1,3 +1,5 @@
hs.window.animationDuration = 0
local LOGLEVEL = 'debug' local LOGLEVEL = 'debug'
log = hs.logger.new('init', 'debug') log = hs.logger.new('init', 'debug')
@ -32,8 +34,6 @@ releasedF18 = function() k:exit() end
f18 = hs.hotkey.bind({}, 'F18', pressedF18, releasedF18) f18 = hs.hotkey.bind({}, 'F18', pressedF18, releasedF18)
hyper = {"ctrl", "alt", "cmd", "shift"} hyper = {"ctrl", "alt", "cmd", "shift"}
-- hs.hotkey.bind(hyper, "C", function() hs.application.launchOrFocus("Google Chrome") end) -- hs.hotkey.bind(hyper, "C", function() hs.application.launchOrFocus("Google Chrome") end)
@ -543,6 +543,7 @@ if spoon.wifiNotifier then
spoon.wifiNotifier:start() spoon.wifiNotifier:start()
end end
---------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------
-- Register browser tab typist: Type URL of current tab of running browser in markdown format. i.e. [title](link) -- Register browser tab typist: Type URL of current tab of running browser in markdown format. i.e. [title](link)
-- hstype_keys = hstype_keys or {"alt", "V"} -- hstype_keys = hstype_keys or {"alt", "V"}

Loading…
Cancel
Save