4 ms·
I use Hammerspoon for this and it's super configurable via Lua--open some URLs with Chrome profile 1, some with profile 2, some in incognito, open normal Spotif
by beaugunderson 1y ago
I use Hammerspoon for this and it's super configurable via Lua--open some URLs with Chrome profile 1, some with profile 2, some in incognito, open normal Spotify links with the Spotify app, normal Zoom links with Zoom (skip opening a tab that then opens the zoom:// link), etc.
For Google Drive links I open a picker that lets me choose from two chrome profiles and incognito.
- badmonster 1y agocool
- 037 1y agoWould you mind sharing some tips on how to set that up? A code snippet or a link to the relevant docs would be super helpful.
- beaugunderson 1y agoCertainly, the bulk of the functionality is provided by URLDispatcher: https://www.hammerspoon.org/Spoons/URLDispatcher.html https://www.hammerspoon.org/Spoons/URLDispatcher.html Here's a cleaned up version of my config... I also mapped global cmd-shift-1/2/i to focus my profile and incognito windows (and create a window if none already existed): https://gist.github.com/beaugunderson/d1ca2218b9b272f3ac357345c12df880 https://gist.github.com/beaugunderson/d1ca2218b9b272f3ac3573...
- 037 1y agoThanks a lot — that’s way more than I expected!