QoL window move
This commit is contained in:
parent
a9f26cfd6b
commit
334780b2f4
@ -74,6 +74,53 @@ windowMove = function()
|
||||
fullscreen(win)
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
|
||||
hs.hotkey.bind({ "ctrl", "alt", "cmd", "shift" }, "pad1", function()
|
||||
-- DELL S2722DGM
|
||||
local scr = getScreenById("0F6BDB5B-840D-40BE-AAC9-B467A78E057A")
|
||||
if scr == nil then
|
||||
return
|
||||
end
|
||||
|
||||
for _, win in ipairs(window.focusedWindow():application():allWindows()) do
|
||||
win:moveToScreen(scr)
|
||||
timer.doAfter(1, function()
|
||||
fullscreen(win)
|
||||
end)
|
||||
end
|
||||
end)
|
||||
|
||||
hs.hotkey.bind({ "ctrl", "alt", "cmd", "shift" }, "pad2", function()
|
||||
-- DELL S2721DGF
|
||||
local scr = getScreenById("D3142823-261D-46EF-B9C2-5181C7FE2CA5")
|
||||
if scr == nil then
|
||||
return
|
||||
end
|
||||
|
||||
for _, win in ipairs(window.focusedWindow():application():allWindows()) do
|
||||
win:moveToScreen(scr)
|
||||
timer.doAfter(1, function()
|
||||
fullscreen(win)
|
||||
end)
|
||||
end
|
||||
end)
|
||||
|
||||
hs.hotkey.bind({ "ctrl", "alt", "cmd", "shift" }, "pad3", function()
|
||||
-- AV Receiver
|
||||
local scr = getScreenById("B5A65BB6-E73E-4C3D-977C-33C86798AA5A")
|
||||
if scr == nil then
|
||||
return
|
||||
end
|
||||
|
||||
for _, win in ipairs(window.focusedWindow():application():allWindows()) do
|
||||
win:moveToScreen(scr)
|
||||
timer.doAfter(1, function()
|
||||
fullscreen(win)
|
||||
end)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
windowMove()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user