From f3bf4ff98dc0eda3781a7906d204a21d9e4c51dc Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 10 May 2024 17:49:41 +0100 Subject: [PATCH] fix(hammerspoon/hati): disable URL handling with Hammerspoon When using Arc and having new links open in Little Arc while having Hammerspoon set as the default browser, clicking a link first switches to and focuses on the most recent main Arc window, before then opening Little Arc. While if Arc itself is the default browser, no such focus switching happens, and instead Little Arc just opens and gets focus. --- hammerspoon/hosts/hati.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/hammerspoon/hosts/hati.lua b/hammerspoon/hosts/hati.lua index 873ce1c..f7ddb07 100644 --- a/hammerspoon/hosts/hati.lua +++ b/hammerspoon/hosts/hati.lua @@ -37,18 +37,18 @@ end -- URL Handling -------------------------------------------------------------------------------- -local uh = require('url_handler') +-- local uh = require('url_handler') -local function init_url_handler() - uh.default_handler = uh.browsers.arc - uh.url_patterns = { - { - { "%://meet.google.com/" }, uh.browsers.chrome, nil, - } - } +-- local function init_url_handler() +-- uh.default_handler = uh.browsers.arc +-- uh.url_patterns = { +-- { +-- { "%://meet.google.com/" }, uh.browsers.chrome, nil, +-- } +-- } - uh:init() -end +-- uh:init() +-- end -------------------------------------------------------------------------------- -- Initialization @@ -56,7 +56,7 @@ end function obj.init() init_hotkeys() - init_url_handler() + -- init_url_handler() end return obj