mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 09:26:42 +00:00
feat(hammerspoon): add app_hider.lua which allows hiding apps on loss of focus
This commit is contained in:
@@ -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
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user