system: fix monitor order
This commit is contained in:
parent
65dcb3784d
commit
a31cbc7356
2 changed files with 10 additions and 9 deletions
|
@ -114,10 +114,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
xsession.initExtra = ''
|
||||
xrandr --output HDMI-A-0 --rotate right --left-of DisplayPort-1
|
||||
'';
|
||||
|
||||
xdg = {
|
||||
enable = true;
|
||||
configFile = {
|
||||
|
|
|
@ -35,16 +35,21 @@ in
|
|||
};
|
||||
|
||||
services.xserver = {
|
||||
# All monitors in the right order
|
||||
# See: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/xserver.nix#L83
|
||||
xrandrHeads = [
|
||||
{
|
||||
output = "DisplayPort-1";
|
||||
primary = true;
|
||||
}
|
||||
{
|
||||
output = "HDMI-A-0";
|
||||
monitorConfig = ''
|
||||
Option "PreferredMode" "1920x1080"
|
||||
Option "Rotate" "right"
|
||||
Option "LeftOf" "DisplayPort-1"
|
||||
'';
|
||||
}
|
||||
{
|
||||
output = "DisplayPort-1";
|
||||
primary = true;
|
||||
monitorConfig = ''
|
||||
Option "PreferredMode" "2560x1440"
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue