Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions hammerspoon/browser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ function browser.openProfileMenu()
if app == nil then return end
if app:name() == 'Safari' then return end
app:activate()
-- focus on menubar if auto-hidden
hs.eventtap.keyStroke({'fn', 'ctrl'}, 'f2')
if not app:findMenuItem({'Profiles'}) then
hs.printf('openProfileMenu: no "Profiles" menu found in %s', app:name())
return
end
app:selectMenuItem({'Profiles'})
end

Expand Down
Loading