From 511fb3ecda57ae0a14206b2a237d45ddddbf221b Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 5 Aug 2017 14:57:34 +0100 Subject: [PATCH] Add center super narrow window hotkey --- hammerspoon/window_management.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/hammerspoon/window_management.lua b/hammerspoon/window_management.lua index cf43e60..c50c783 100644 --- a/hammerspoon/window_management.lua +++ b/hammerspoon/window_management.lua @@ -64,14 +64,20 @@ function wm:init () hs.hotkey.bind({"ctrl", "alt"}, "K", self.adjustWindow(0, 6, 30, 14)) -- 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 - 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 - 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 - 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 hs.hotkey.bind({"ctrl", "alt"}, "\\", self.adjustWindow(9, 0, 12, 20)) -- center narrow