Add center super narrow window hotkey

This commit is contained in:
2017-08-05 14:57:34 +01:00
parent 7bd9f0d9f2
commit 511fb3ecda

View File

@@ -64,14 +64,20 @@ function wm:init ()
hs.hotkey.bind({"ctrl", "alt"}, "K", self.adjustWindow(0, 6, 30, 14)) hs.hotkey.bind({"ctrl", "alt"}, "K", self.adjustWindow(0, 6, 30, 14))
-- top left quarter -- top left quarter
hs.hotkey.bind({"cmd", "ctrl", "shift"}, "J", self.adjustWindow(0, 0, 15, 10)) hs.hotkey.bind({"cmd", "ctrl", "shift"}, "J",
self.adjustWindow(0, 0, 15, 10))
-- top right quarter -- top right quarter
hs.hotkey.bind({"cmd", "ctrl", "shift"}, "I", self.adjustWindow(15, 0, 15, 10)) hs.hotkey.bind({"cmd", "ctrl", "shift"}, "I",
self.adjustWindow(15, 0, 15, 10))
-- bottom right quarter -- bottom right quarter
hs.hotkey.bind({"cmd", "ctrl", "shift"}, "L", self.adjustWindow(15, 10, 15, 10)) hs.hotkey.bind({"cmd", "ctrl", "shift"}, "L",
self.adjustWindow(15, 10, 15, 10))
-- bottom left quarter -- bottom left quarter
hs.hotkey.bind({"cmd", "ctrl", "shift"}, "K", self.adjustWindow(0, 10, 15, 10)) hs.hotkey.bind({"cmd", "ctrl", "shift"}, "K",
self.adjustWindow(0, 10, 15, 10))
-- center super narrow
hs.hotkey.bind({"cmd", "ctrl", "alt"}, "\\", self.adjustWindow(10, 0, 10, 20))
-- center narrow small -- center narrow small
hs.hotkey.bind({"ctrl", "alt"}, "\\", self.adjustWindow(9, 0, 12, 20)) hs.hotkey.bind({"ctrl", "alt"}, "\\", self.adjustWindow(9, 0, 12, 20))
-- center narrow -- center narrow