From 90902e2ae909adff3d9ca111fb8a2a00fc19b747 Mon Sep 17 00:00:00 2001 From: Sander Hestvik Date: Sat, 20 Jan 2024 20:59:31 +0100 Subject: [PATCH] replace max with s in getting-started --- getting-started.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/getting-started.md b/getting-started.md index 4da4953..8b2974b 100644 --- a/getting-started.md +++ b/getting-started.md @@ -237,12 +237,12 @@ hs.hotkey.bind({"cmd", "alt", "ctrl"}, "Left", function() local win = hs.window.focusedWindow() local f = win:frame() local screen = win:screen() - local max = screen:frame() + local s = screen:frame() - f.x = max.x - f.y = max.y - f.w = max.w / 2 - f.h = max.h + f.x = s.x + f.y = s.y + f.w = s.w / 2 + f.h = s.h win:setFrame(f) end) ``` @@ -256,12 +256,12 @@ hs.hotkey.bind({"cmd", "alt", "ctrl"}, "Right", function() local win = hs.window.focusedWindow() local f = win:frame() local screen = win:screen() - local max = screen:frame() + local s = screen:frame() - f.x = max.x + (max.w / 2) - f.y = max.y - f.w = max.w / 2 - f.h = max.h + f.x = s.x + (s.w / 2) + f.y = s.y + f.w = s.w / 2 + f.h = s.h win:setFrame(f) end) ```