fix(hammerspoon/hati): use Arc as default browser via Hammerspoon

This commit is contained in:
Jim Myhrberg
2024-05-09 21:14:36 +01:00
parent 4e5259cd1e
commit 7fff0e62af
2 changed files with 6 additions and 3 deletions

View File

@@ -7,6 +7,8 @@ local obj = {}
local apptoggle = require('app_toggle')
local function init_hotkeys()
hs.hotkey.bind({ 'cmd', 'alt', 'ctrl' }, 'S', apptoggle.showAppInfo)
apptoggle:bind({ 'cmd', 'alt', 'ctrl' }, 'A', { 'Activity Monitor' })
apptoggle:bind({ 'cmd', 'ctrl' }, '4', { 'HuggingChat' })
apptoggle:bind({ 'cmd', 'ctrl' }, 'A', { 'ArgoCD' })
@@ -38,7 +40,7 @@ end
local uh = require('url_handler')
local function init_url_handler()
uh.default_handler = uh.browsers.firefox
uh.default_handler = uh.browsers.arc
uh.url_patterns = {
{
{ "%://meet.google.com/" }, uh.browsers.chrome, nil,
@@ -54,7 +56,7 @@ end
function obj.init()
init_hotkeys()
-- init_url_handler()
init_url_handler()
end
return obj

View File

@@ -43,7 +43,7 @@ obj.url_redir_decoders = nil
--- A table of browser names and corresponding bundle IDs that can be used in
--- the url_patterns table.
obj.browsers = {
arc = 'com.arc.arc',
arc = 'company.thebrowser.Browser',
brave = 'com.brave.Browser',
camino = 'org.mozilla.camino',
chrome = 'com.google.Chrome',
@@ -59,6 +59,7 @@ obj.browsers = {
palemoon = 'com.palemoon.palemoon',
safari = 'com.apple.Safari',
seamonkey = 'org.mozilla.seamonkey',
sigmaos = 'com.sigmaos.sigmaos.macos',
tor = 'org.mozilla.tor browser',
vivaldi = 'com.vivaldi.Vivaldi',
waterfox = 'net.waterfox.waterfox',