Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hs.window.animationDuration = 0
- units = {
- r30 = { x = 0.700, y = 0.000, w = 0.300, h = 1.000 },
- r50 = { x = 0.500, y = 0.000, w = 0.500, h = 1.000 },
- r70 = { x = 0.300, y = 0.000, w = 0.700, h = 1.000 },
- l30 = { x = 0.000, y = 0.000, w = 0.300, h = 1.000 },
- l50 = { x = 0.000, y = 0.000, w = 0.500, h = 1.000 },
- l70 = { x = 0.000, y = 0.000, w = 0.700, h = 1.000 },
- top50 = { x = 0.000, y = 0.000, w = 1.000, h = 0.500 },
- bot50 = { x = 0.000, y = 0.500, w = 1.000, h = 0.500 },
- max = { x = 0.025, y = 0.025, w = 0.950, h = 0.950 },
- center = { x = 0.125, y = 0.125, w = 0.750, h = 0.750 }
- }
- mash = { 'ctrl', 'alt', 'cmd' }
- hs.hotkey.bind(mash, 'right', function() hs.window.focusedWindow():move(units.r50, nil, true) end)
- hs.hotkey.bind(mash, 'left', function() hs.window.focusedWindow():move(units.l50, nil, true) end)
- hs.hotkey.bind(mash, 'up', function() hs.window.focusedWindow():move(units.top50, nil, true) end)
- hs.hotkey.bind(mash, 'down', function() hs.window.focusedWindow():move(units.bot50, nil, true) end)
- hs.hotkey.bind(mash, 'l', function() hs.window.focusedWindow():move(units.r30, nil, true) end)
- hs.hotkey.bind(mash, 'h', function() hs.window.focusedWindow():move(units.l70, nil, true) end)
- hs.hotkey.bind(mash, 'm', function() hs.window.focusedWindow():move(units.max, nil, true) end)
- hs.hotkey.bind(mash, 'c', function() hs.window.focusedWindow():move(units.center, nil, true) end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement