mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-23 02:15:38 +00:00
hammerspoon hotkey for maximize
This commit is contained in:
parent
3989a16015
commit
b7a75da2d3
@ -19,6 +19,13 @@ function obj:init()
|
|||||||
-- and move the window to the next screen setting the same unitRect
|
-- and move the window to the next screen setting the same unitRect
|
||||||
win:move(win:frame():toUnitRect(screen:frame()), screen:next(), true, 0)
|
win:move(win:frame():toUnitRect(screen:frame()), screen:next(), true, 0)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
hs.hotkey.bind({ "alt", "ctrl", "cmd" }, "m", function()
|
||||||
|
-- get the focused window
|
||||||
|
local win = hs.window.focusedWindow()
|
||||||
|
-- maximize if possible
|
||||||
|
win:maximize()
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
return obj
|
return obj
|
||||||
|
Loading…
Reference in New Issue
Block a user