From 26bde19a6691d35934d2e681b9d8d1e89b9233d8 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Sun, 27 Sep 2020 13:50:29 +0800 Subject: [PATCH] Hammerspoon: disable alt h --- hammerspoon/autoscript.lua | 2 +- hammerspoon/init.lua | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hammerspoon/autoscript.lua b/hammerspoon/autoscript.lua index d8deb2a..dbf8468 100644 --- a/hammerspoon/autoscript.lua +++ b/hammerspoon/autoscript.lua @@ -23,5 +23,5 @@ function runAutoScripts() end -myTimer = hs.timer.doEvery(1800, runAutoScripts) +myTimer = hs.timer.doEvery(7200, runAutoScripts) myTimer:start() diff --git a/hammerspoon/init.lua b/hammerspoon/init.lua index 4321313..4f8b602 100644 --- a/hammerspoon/init.lua +++ b/hammerspoon/init.lua @@ -379,14 +379,14 @@ end ---------------------------------------------------------------------------------------------------- -- Register Hammerspoon API manual: Open Hammerspoon manual in default browser -hsman_keys = hsman_keys or {"alt", "H"} -if string.len(hsman_keys[2]) > 0 then - spoon.ModalMgr.supervisor:bind(hsman_keys[1], hsman_keys[2], "Read Hammerspoon Manual", function() - hs.doc.hsdocs.forceExternalBrowser(true) - hs.doc.hsdocs.moduleEntitiesInSidebar(true) - hs.doc.hsdocs.help() - end) -end +-- hsman_keys = hsman_keys or {"alt", "H"} +-- if string.len(hsman_keys[2]) > 0 then +-- spoon.ModalMgr.supervisor:bind(hsman_keys[1], hsman_keys[2], "Read Hammerspoon Manual", function() +-- hs.doc.hsdocs.forceExternalBrowser(true) +-- hs.doc.hsdocs.moduleEntitiesInSidebar(true) +-- hs.doc.hsdocs.help() +-- end) +-- end ---------------------------------------------------------------------------------------------------- -- countdownM modal environment