]> git.sur5r.net Git - i3/i3.github.io/commit
Fix swap monitors scripts (#26)
authorMateus Dubiela Oliveira <mateusduboli@gmail.com>
Tue, 27 Sep 2016 01:33:06 +0000 (22:33 -0300)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Tue, 27 Sep 2016 01:33:06 +0000 (18:33 -0700)
commitadc2691bc608c0343d7bcc18f036f019bb9dd430
tree5c14df136fcfbc85a61b0e4de69b26e66dfd8d32
parent4425ebb5f0ee2ec3bd1851052775226df8805dbc
Fix swap monitors scripts (#26)

The old script for swapping monitors had a issue if the first two outputs were not `active`, not making the swap correctly.

I added a `filter` function on top of the retrieved output in order to retrieve only active outputs and swap only between then.
docs/user-contributed/swapping-workspaces.html