diff options
author | Stivvo <stivvo01@gmail.com> | 2020-12-30 16:50:15 +0100 |
---|---|---|
committer | Stivvo <stivvo01@gmail.com> | 2020-12-30 17:07:48 +0100 |
commit | fa782896f874cd3398940e71c6adbde411343483 (patch) | |
tree | 2e7bca238a6badcf472eb96e532cdb29bd8b7769 /config.def.h | |
parent | 33c36be2fc7df3815abfcd8e0bc0bc2b65554ec5 (diff) |
Define monitor's x,y at compile time
Replaces the outputOrder patch.
This avoids recalculating positions and allows to arrange monitors in
any order, not just from left to right.
The order in which monitors are defined in config.h still matters but
it's just the order in the list, not the actual position.
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h index 8c1f5ba..982c870 100644 --- a/config.def.h +++ b/config.def.h @@ -28,12 +28,14 @@ static const Layout layouts[] = { * The order in which monitors are defined determines their position. * Non-configured monitors are always added to the left. */ static const MonitorRule monrules[] = { - /* name mfact nmaster scale layout rotate/reflect */ + /* name mfact nmaster scale layout rotate/reflect x y */ /* example of a HiDPI laptop monitor: - { "eDP-1", 0.5, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL }, + { "eDP-1", 0.5, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0 }, */ + /* the order in which monitors are defined here affects the order in which + * focusmon and tagmon cycle trough the monitors */ /* defaults */ - { NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL }, + { NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0 }, }; /* keyboard */ |