From c724f1675a1239fc98560631cc6530adbb93f206 Mon Sep 17 00:00:00 2001 From: Quinn Ciccoretti Date: Wed, 7 Dec 2022 10:03:11 -0500 Subject: [PATCH] Updated User Config Examples (markdown) --- User-Config-Examples.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/User-Config-Examples.md b/User-Config-Examples.md index a5b4625..e6f5865 100644 --- a/User-Config-Examples.md +++ b/User-Config-Examples.md @@ -21,4 +21,22 @@ Retile() return ``` -[Full Config](https://gist.github.com/QuinnCiccoretti/d22230303ad08f6247dfce48d46d9914) \ No newline at end of file +[Full Config](https://gist.github.com/QuinnCiccoretti/d22230303ad08f6247dfce48d46d9914) + +## Configure multiple monitors/workspaces with a loop +```ahk +Loop 2 { + Monitor := A_INDEX-1 + ; autohotkey loop scope is weird! + ; if i save A_INDEX-1 in the outer loop, + ; i can access this value in the inner loop with "monitor" + ; and the inner loop has its own unrelated A_INDEX + EnsureWorkspaces(Monitor, 5) + Loop 6 { + ;no padding on any monitor/workspace + Workspace := A_INDEX-1 + ContainerPadding(Monitor, Workspace, 0) + WorkspacePadding(Monitor, Workspace, 0) + } +} +``` \ No newline at end of file