Skip to content

Apologies in advance: help tiling all screens with multimonitor setup

I'm really sorry - I'm not a programmer or even vaguely literate in coding languages. This is my first attempt at code-monkeying LUA.

I have a triple monitor setup and wanted a single keybinding to tile all the windows on all the screens (I'm not using tags if that makes a difference).

I've messed about with about 20 trial and error test till I edited my config as follows: key_bind("Mod4-shift-a",function()set_tiler("HDMI-0",tiler_grid,false);set_tiler("HDMI-1",tiler_grid,false);set_tiler("HDMI-3",tiler_grid,false)end)

This works (and made me whoop with satisfaction). However I suspect it's very clumsy coding. It certainly introduces an appreciable (but still < 1 second) delay between doing each screen.

Is there a better way to write this config please? or is there a built-in I haven't figured out please?

tia