From 49a98160d92d592e1bd456c2c8f326abfa193292 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Sat, 8 Oct 2022 09:03:09 +0800 Subject: [PATCH] feat: adjust hammerspoon --- hammerspoon/ime.lua | 3 --- hammerspoon/init.lua | 5 +++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/hammerspoon/ime.lua b/hammerspoon/ime.lua index 38f6a20..fd11690 100644 --- a/hammerspoon/ime.lua +++ b/hammerspoon/ime.lua @@ -25,10 +25,8 @@ local app2Ime = { {'/Applications/Google Chrome.app', 'zh'}, {'/Applications/DingTalk.app', 'zh'}, {'/Applications/KakaoTalk.app', 'zh'}, - {'/Applications/Kindle.app', 'zh'}, {'/Applications/kitty.app', 'zh'}, {'/Applications/NeteaseMusic.app', 'zh'}, - {'/Applications/Lark.app', 'zh'}, {'/Applications/System Preferences.app', 'zh'}, {'/Applications/MindNode.app', 'zh'}, {'/Applications/Obsidian.app', 'zh'}, @@ -37,7 +35,6 @@ local app2Ime = { {'/Applications/wechatwebdevtools.app', 'zh'}, {'/Applications/WeChat.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'}, } diff --git a/hammerspoon/init.lua b/hammerspoon/init.lua index aca2b1c..b848db9 100644 --- a/hammerspoon/init.lua +++ b/hammerspoon/init.lua @@ -1,3 +1,5 @@ +hs.window.animationDuration = 0 + local LOGLEVEL = 'debug' log = hs.logger.new('init', 'debug') @@ -32,8 +34,6 @@ releasedF18 = function() k:exit() end f18 = hs.hotkey.bind({}, 'F18', pressedF18, releasedF18) - - hyper = {"ctrl", "alt", "cmd", "shift"} -- hs.hotkey.bind(hyper, "C", function() hs.application.launchOrFocus("Google Chrome") end) @@ -543,6 +543,7 @@ if spoon.wifiNotifier then spoon.wifiNotifier:start() end + ---------------------------------------------------------------------------------------------------- -- 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"}