update darwin firefox and add small convenience tweaks

This commit is contained in:
Noah Masur
2023-09-06 15:21:59 -04:00
parent 67251a6d8d
commit 1a9ab975d1
4 changed files with 19 additions and 3 deletions

View File

@ -55,6 +55,15 @@ local function worklayout()
local layout = concat(left, right, laptop)
hs.layout.apply(layout)
end)
-- Reload Hammerspoon whenever layout changes
hs.screen.watcher.new(function()
-- Pause for 5 seconds to give time for layout to change
hs.timer.doAfter(5, function()
-- Perform the actual reload
hs.reload()
end)
end)
end
return worklayout