From 07aec27826d6d68441959fb5d07697f8466210bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 7 Nov 2021 09:34:26 +0000 Subject: [PATCH] xplicitly set primary display --- nixos/i3/autorandr.nix | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/nixos/i3/autorandr.nix b/nixos/i3/autorandr.nix index 8ce01530..292acfe0 100644 --- a/nixos/i3/autorandr.nix +++ b/nixos/i3/autorandr.nix @@ -23,17 +23,6 @@ "restart-i3" = "sudo ${pkgs.i3}/bin/i3-msg restart"; }; profiles = { - "foureighty" = { - fingerprint = { - eDP-1 = "00ffffffffffff0006af362300000000001b0104a51f117802f4f5a4544d9c270f505400000001010101010101010101010101010101e65f00a0a0a040503020350035ae100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343051414e30322e33200a00b2"; - }; - config = { - eDP-1 = { - enable = true; - mode = "2560x1440"; - }; - }; - }; "foureighty-docked" = { fingerprint = { eDP-1 = "00ffffffffffff0006af362300000000001b0104a51f117802f4f5a4544d9c270f505400000001010101010101010101010101010101e65f00a0a0a040503020350035ae100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343051414e30322e33200a00b2"; @@ -45,10 +34,23 @@ }; DP-1 = { enable = true; + primary = true; + position = "0x0"; mode = "3840x2160"; }; }; }; + "foureighty" = { + fingerprint = { + eDP-1 = "00ffffffffffff0006af362300000000001b0104a51f117802f4f5a4544d9c270f505400000001010101010101010101010101010101e65f00a0a0a040503020350035ae100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343051414e30322e33200a00b2"; + }; + config = { + eDP-1 = { + enable = true; + mode = "2560x1440"; + }; + }; + }; }; }; };