----- multi-window layout
-local laptopScreen = "Color LCD"
-local windowLayout = {
- {"Safari", nil, laptopScreen, hs.layout.left50, nil, nil},
- {"Mail", nil, laptopScreen, hs.layout.right50, nil, nil},
- {"iTunes", "iTunes", laptopScreen, hs.layout.maximized, nil, nil},
- {"iTunes", "MiniPlayer", laptopScreen, nil, nil, hs.geometry.rect(0, -48, 400, 48)},
-}
-hs.layout.apply(windowLayout)
-
----- Creating a simple menubar item
---caffeine = hs.menubar.new()
---function setCaffeineDisplay(state)
--- if state then
--- caffeine:setTitle("AWAKE")
--- else
--- caffeine:setTitle("SLEEPY")
--- end
---end
---
---function caffeineClicked()
--- setCaffeineDisplay(hs.caffeinate.toggle("displayIdle"))
---end
+-- Window Movement
+-- https://andrich.blog/2016/11/20/hammerspoon-an-awesome-tool-to-automate-your-mac/
+-- CTRL + ALT + Left - Move current window to the left half of the screen.
+-- CTRL + ALT + Right - Move current window to the right half of the screen.
+-- CTRL + ALT + Up - Go "fullscreen".
+-- CTRL + ALT + Down - Center window, covering 2/3 of screen size.