Skip to content

Instantly share code, notes, and snippets.

@kenlim
kenlim / init.lua
Created September 27, 2024 09:19
My Hammerspoon init file that provides window resizing to thirds of the screen
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "Left", function()
local win = hs.window.focusedWindow()
local currentWindow = win:frame()
local screen = win:screen()
local screenFrame = screen:frame()
local half = screenFrame.w / 2
local third = screenFrame.w / 3
local twothirds = screenFrame.w - third
<html>
<body>
<esi:include src="/geo_information" />
</body>
</html>