From 4efc63bf981d764fc0f753851b3aa74488667127 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 23 Nov 2024 13:46:36 -0800 Subject: [PATCH] feat(home): Autorandr --- homes/x86_64-linux/marley@nyx/autorandr.nix | 39 +++++++++++++++++++++ homes/x86_64-linux/marley@nyx/default.nix | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 homes/x86_64-linux/marley@nyx/autorandr.nix diff --git a/homes/x86_64-linux/marley@nyx/autorandr.nix b/homes/x86_64-linux/marley@nyx/autorandr.nix new file mode 100644 index 0000000..88c3e3e --- /dev/null +++ b/homes/x86_64-linux/marley@nyx/autorandr.nix @@ -0,0 +1,39 @@ +_: { + programs.autorandr = { + enable = true; + + profiles = { + "main" = { + fingerprint = { + "DP-0" = "00ffffffffffff00061036920000570213130104a5342078266ea1a7554c9d250e5054000000d1000101010101010101010101010101283c80a070b023403020360006442100001a000000ff00324139313934365a304b300a20000000fc004c45442043696e656d610a2020000000000000000000000000000000000000011a400102000000007e2401a500ffff031a1aa80100000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000057"; + "HDMI-0" = "00ffffffffffff0030ae0c0a010101011d160103802f1e78ee23c5a5574f9e260f5054bdcf00714f8180818c9500950fa9c0b300010126399030621a274068b03600da281100001c000000fd00324b1e5311000a202020202020000000fc004c54323235327020576964650a000000ff0036563841434637340a2020202000f8"; + }; + config = { + "DP-0" = { + enable = true; + crtc = 0; + primary = true; + mode = "1920x1200"; + position = "0x0"; + rate = "59.95"; + extraConfig = # sh + '' + x-prop-non_desktop 0 + ''; + }; + "HDMI-0" = { + enable = true; + crtc = 1; + mode = "1680x1050"; + position = "1920x0"; + rate = "59.97"; + extraConfig = # sh + '' + x-prop-non_desktop 0 + ''; + }; + }; + }; + }; + }; +} diff --git a/homes/x86_64-linux/marley@nyx/default.nix b/homes/x86_64-linux/marley@nyx/default.nix index 05fd518..b7d4119 100644 --- a/homes/x86_64-linux/marley@nyx/default.nix +++ b/homes/x86_64-linux/marley@nyx/default.nix @@ -7,6 +7,8 @@ let inherit (lib.marleyos) enabled; in { + imports = [ ./autorandr.nix ]; + home.keyboard.options = [ "apple:alupckeys" ]; # FIXME: Remove once we are on NixOS