From a3e89036690101017ea7d31e1efa47642fb08d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 17 Sep 2023 22:02:30 +0300 Subject: [PATCH] autorandr: configure lone laptop --- hosts/fwminex/configuration.nix | 17 +++++++++++++++-- hosts/fwminex/randr.nix | 1 + 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix index e588bdd..a673f39 100644 --- a/hosts/fwminex/configuration.nix +++ b/hosts/fwminex/configuration.nix @@ -105,8 +105,20 @@ in { home-manager.users.motiejus = {pkgs, ...}: { programs.autorandr.profiles = { + laptop = { + fingerprint = { inherit (randr) eDP-1; }; + config = { + eDP-1 = { + enable = true; + primary = true; + mode = "2256x1504"; + crtc = 0; + }; + }; + }; + dualhome = { - fingerprint = {inherit (randr) DP-3 DP-4;}; + fingerprint = {inherit (randr) eDP-1 DP-3 DP-4;}; config = { eDP-1.enable = false; DP-4 = { @@ -114,12 +126,13 @@ in { mode = "2560x1440"; position = "2560x0"; primary = true; + crtc = 0; }; DP-3 = { enable = true; mode = "2560x1440"; position = "0x0"; - crtc = 2; + crtc = 1; }; }; }; diff --git a/hosts/fwminex/randr.nix b/hosts/fwminex/randr.nix index 66e317f..ee85493 100644 --- a/hosts/fwminex/randr.nix +++ b/hosts/fwminex/randr.nix @@ -1,4 +1,5 @@ { DP-3 = "00ffffffffffff0010ac8b4157343231151d0103803c2278eab6e5a9534ca3250a5054a54b00714f8180a940d1c00101010101010101565e00a0a0a029503020350055502100001a000000ff004343315a4d53320a2020202020000000fc0044454c4c20533237313944430a000000fd00304b1e7820000a20202020202001a3020327f149101f0413121103020123097f078301000067030c0010000040681a00000101304be6a073006aa0a029500820350055502100001a023a801871382d40582c450055502100001e7e3900a080381f4030203a0055502100001a011d007251d01e206e28550055502100001e00000000000000000000000000000000aa"; DP-4 = "00ffffffffffff0010ac31424c38334114200104b53c22783eee95a3544c99260f5054a54b00714f8180a9c0a940d1c0010101010101565e00a0a0a029503020350055502100001a000000ff004a4450444448330a2020202020000000fc0044454c4c20553237323244450a000000fd00314c1e5a19010a2020202020200146020319f14c90040302011112131f20212223097f0783010000023a801871382d40582c450055502100001e7e3900a080381f4030203a0055502100001a011d007251d01e206e28550055502100001ebf1600a08038134030203a0055502100001a00000000000000000000000000000000000000000000000000000000000006"; + eDP-1 = "00ffffffffffff0009e55f0900000000171d0104a51c137803de50a3544c99260f505400000001010101010101010101010101010101115cd01881e02d50302036001dbe1000001aa749d01881e02d50302036001dbe1000001a000000fe00424f452043510a202020202020000000fe004e4531333546424d2d4e34310a00fb"; }