Func tileByNum in tiler.js should use one argument (number of sections as is now) for times when it will tile only the current window (eg. the basic setup, not in preferences) and two arguments (first one will be the number of sections again, second will be number of monitor to be tiled).
Then, inside the function two options will arise - one staying as is now for the current, second one will instead of currentMonitor use givenMonitor, rest of code can stay the same.
Func tileByNum in tiler.js should use one argument (number of sections as is now) for times when it will tile only the current window (eg. the basic setup, not in preferences) and two arguments (first one will be the number of sections again, second will be number of monitor to be tiled).
Then, inside the function two options will arise - one staying as is now for the current, second one will instead of currentMonitor use givenMonitor, rest of code can stay the same.