feat(hammerspoon): add app_hider.lua which allows hiding apps on loss of focus

This commit is contained in:
2025-01-13 19:57:57 +00:00
parent 10144dfa16
commit ffe5933b17
2 changed files with 96 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ local obj = {}
--------------------------------------------------------------------------------
local apptoggle = require('app_toggle')
local apphider = require('app_hider')
local function init_hotkeys()
hs.hotkey.bind({ 'cmd', 'alt', 'ctrl' }, 'S', apptoggle.showAppInfo)
@@ -32,6 +33,10 @@ local function init_hotkeys()
{ 'Code - Insiders', '/Applications/Visual Studio Code - Insiders.app' },
{ 'Code', '/Applications/Visual Studio Code.app' }
)
-- Use Ghostty as my primary terminal application.
-- apptoggle:bind({ 'cmd', 'ctrl' }, 'R', { 'Ghostty' })
-- apphider:autoHide('Ghostty') -- auto-hide Ghostty when it loses focus
end
--------------------------------------------------------------------------------