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