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