More tweaking on macOS
This commit is contained in:
parent
186278be5a
commit
fd43150339
2 changed files with 36 additions and 24 deletions
|
@ -24,32 +24,40 @@ for key, application in pairs(applicationHotKeys) do
|
|||
end)
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
-- Spotlight
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
-- hs.hotkey.bind({}, 'f18', function()
|
||||
-- hs.alert.show("Hello World!")
|
||||
-- end)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
-- Window Snapping
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
hs.window.animationDuration = 0
|
||||
|
||||
hs.hotkey.bind(hyper, 'Left', function()
|
||||
hs.hotkey.bind(hyper, 'a', function()
|
||||
local win = hs.window.focusedWindow()
|
||||
if not win then return end
|
||||
win:moveToUnit(hs.layout.left50)
|
||||
end)
|
||||
|
||||
hs.hotkey.bind(hyper, 'Right', function()
|
||||
hs.hotkey.bind(hyper, 'd', function()
|
||||
local win = hs.window.focusedWindow()
|
||||
if not win then return end
|
||||
win:moveToUnit(hs.layout.right50)
|
||||
end)
|
||||
|
||||
hs.hotkey.bind(hyper, 'Up', function()
|
||||
hs.hotkey.bind(hyper, 'w', function()
|
||||
local win = hs.window.focusedWindow()
|
||||
if not win then return end
|
||||
win:moveToUnit(hs.layout.maximized)
|
||||
end)
|
||||
|
||||
-- Simulates a 'reset' of the window
|
||||
hs.hotkey.bind(hyper, 'Down', function()
|
||||
hs.hotkey.bind(hyper, 's', function()
|
||||
local win = hs.window.focusedWindow()
|
||||
local f = win:frame()
|
||||
local screen = win:screen()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue