You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to tile window to left or right, and hammerspoon API documentation says if you wanna include menu bar and dock, you should use "fullFrame". But it doesn't seem to be working. It still doesn't include menu bar and dock.
Below is My Code, and it is M1(Mac Sonoma).
hs.hotkey.bind(hyper, "Left", function()
local win = hs.window.focusedWindow()
local screen = win:screen()
local f = win:frame()
local max = screen:fullFrame()
f.x = max.x
f.y = max.y
f.w = max.w / 2
f.h = max.h
win:setFrame(f)
end)
hs.hotkey.bind(hyper, "Right", function()
local win = hs.window.focusedWindow()
local screen = win:screen()
local f = win:frame()
local max = screen:frame()
f.x = max.x + (max.w / 2)
f.y = max.y
f.w = max.w / 2
f.h = max.h
win:setFrame(f)
end)
The text was updated successfully, but these errors were encountered:
I want to tile window to left or right, and hammerspoon API documentation says if you wanna include menu bar and dock, you should use "fullFrame". But it doesn't seem to be working. It still doesn't include menu bar and dock.
Below is My Code, and it is M1(Mac Sonoma).
The text was updated successfully, but these errors were encountered: