Support multiple browsers
This commit is contained in:
parent
01f4f228d4
commit
3bf0d19c4d
@ -12,7 +12,7 @@ local DEFAULTS = {
|
||||
}
|
||||
|
||||
local APPS = {
|
||||
browser = {"Safari"},
|
||||
browser = {{"Zen"}, {"Safari"}},
|
||||
editors = {DEFAULTS["EDITOR"], {"Xcode"}, {"Code", "Visual Studio Code"}, {"IntelliJ IDEA"}},
|
||||
chats = {{"Microsoft Teams"}, {"Telegram"}},
|
||||
messengers = {{"Messages"}, {"Telegram"}, {"Signal"}},
|
||||
@ -277,9 +277,13 @@ hs.hotkey.bind({"ctrl", "alt"}, "R", function()
|
||||
end)
|
||||
|
||||
-- Browser {{{3
|
||||
hs.hotkey.bind({"cmd", "alt"}, "B", function()
|
||||
app_toggle(APPS["browser"])
|
||||
end)
|
||||
hs.hotkey.bind({"cmd", "alt"}, "B", (function()
|
||||
local last_browser = nil
|
||||
|
||||
return function()
|
||||
last_browser = app_pick(last_browser and utils.copy(last_browser) or nil, APPS["browser"])
|
||||
end
|
||||
end)())
|
||||
|
||||
-- Git
|
||||
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "G", function()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user