Resize window with keyboard

local left = { x = -10, y = 0, relative = true }
local down = { x = 0, y = 10, relative = true }
local up = { x = 0, y = -10, relative = true }
local right = { x = 10, y = 0, relative = true }

local function opts(direction)
  return { description = 'Resize the active window ' .. direction, repeating = true }
end

hl.bind('SUPER + ALT + h', window.resize(left_10), opts('left'))
hl.bind('SUPER + ALT + j', window.resize(left_10), opts('down'))
hl.bind('SUPER + ALT + k', window.resize(left_10), opts('up'))
hl.bind('SUPER + ALT + l', window.resize(left_10), opts('right'))