mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 08:45:39 +00:00
prevent bugs in hammerspoon switcher
This commit is contained in:
parent
ba3aa9cd93
commit
2e737fd85c
@ -25,7 +25,9 @@ end
|
|||||||
|
|
||||||
function obj:init()
|
function obj:init()
|
||||||
-- Begin launcher mode
|
-- Begin launcher mode
|
||||||
self.launcher = hs.hotkey.modal.new("ctrl", "space")
|
if self.launcher == nil then
|
||||||
|
self.launcher = hs.hotkey.modal.new("ctrl", "space")
|
||||||
|
end
|
||||||
|
|
||||||
-- Behaviors on enter
|
-- Behaviors on enter
|
||||||
function self.launcher:entered()
|
function self.launcher:entered()
|
||||||
@ -44,6 +46,7 @@ function obj:init()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
-- Launcher shortcuts
|
-- Launcher shortcuts
|
||||||
|
self.launcher:bind("ctrl", "space", function() end)
|
||||||
self.launcher:bind("", "space", function()
|
self.launcher:bind("", "space", function()
|
||||||
hs.hints.windowHints()
|
hs.hints.windowHints()
|
||||||
self.launcher:exit()
|
self.launcher:exit()
|
||||||
|
Loading…
Reference in New Issue
Block a user