From 02fa4572494b8b317db6dc06183e1e8ea4a5235c Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Fri, 2 Mar 2018 07:09:12 -0800 Subject: [PATCH] [hammerspoon] disable attempt at fixing esc in fullscreen safari --- .hammerspoon/init.lua | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.hammerspoon/init.lua b/.hammerspoon/init.lua index fa4b377..fe2e212 100644 --- a/.hammerspoon/init.lua +++ b/.hammerspoon/init.lua @@ -13,20 +13,20 @@ end -- end -- end) -local safari_close_tab = hs.hotkey.new({"cmd"}, "w", function() end, function() - if current_app():name() == "Safari" then - current_app():selectMenuItem({"File", "Close Tab"}) - end -end) +-- local safari_close_tab = hs.hotkey.new({"cmd"}, "w", function() end, function() +-- if current_app():name() == "Safari" then +-- current_app():selectMenuItem({"File", "Close Tab"}) +-- end +-- end) -local wf = hs.window.filter -wf.new("Safari"):subscribe(wf.windowFocused, function() - -- safari_esc:enable() - safari_close_tab:enable() -end):subscribe(wf.windowUnfocused, function() - -- safari_esc:disable() - safari_close_tab:disable() -end) +-- local wf = hs.window.filter +-- wf.new("Safari"):subscribe(wf.windowFocused, function() +-- -- safari_esc:enable() +-- safari_close_tab:enable() +-- end):subscribe(wf.windowUnfocused, function() +-- -- safari_esc:disable() +-- safari_close_tab:disable() +-- end) -- hs.hotkey.bind({"cmd", "shift"}, "[", function() -- current_app():selectMenuItem({"Window", "Select Previous Tab"})