Toggle WezTerm

This commit is contained in:
Corey Smith
2025-10-13 00:10:15 -07:00
parent 42f931ba3c
commit b5f733f750

View File

@ -1,3 +1,17 @@
-- Auto-hide WezTerm when it loses focus
weztermAppWatcher = hs.application.watcher.new(function(appName, eventType, appObject)
if eventType == hs.application.watcher.deactivated and appName == "WezTerm" then
print("WezTerm lost focus, hiding...")
appObject:hide()
end
end)
weztermAppWatcher:start()
print("WezTerm auto-hide enabled")
-- Function to simulate key presses -- Function to simulate key presses
local function pressFn(mods, key) local function pressFn(mods, key)
if key == nil then if key == nil then