Toggle WezTerm
This commit is contained in:
@ -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
|
||||
local function pressFn(mods, key)
|
||||
if key == nil then
|
||||
|
||||
Reference in New Issue
Block a user