nix-config/home/desktop-xmonad/autorandr/trantor.nix

70 lines
2.2 KiB
Nix

{ config, pkgs, ... }:
let
ext_monitor_fingerprint =
"00ffffffffffff0009d1e67845540000261d0103803c22782e4825a756529c270f5054a56b80d1c0b300a9c08180810081c001010101023a801871382d40582c450056502100001e000000ff004c394b30303333313031510a20000000fd00324c1e5311000a202020202020000000fc0042656e51204757323738300a200117020322f14f901f04130312021101140607151605230907078301000065030c001000023a801871382d40582c450056502100001f011d8018711c1620582c250056502100009f011d007251d01e206e28550056502100001e8c0ad08a20e02d10103e960056502100001800000000000000000000000000000000000000000047";
edp_fingerprint =
"00ffffffffffff0030e46e040000000000180104a52615780a0bb5a35955a0270c5054000000010101010101010101010101010101012e3680a070381f40302035007ed71000001b1f2480a070381f40302035007ed71000001b00000000000000000000000000000000000000000002000a30ff0a3c96191d4896000000003f";
edp_config = {
enable = true;
crtc = 0;
# mode = "1368x768";
mode = "1920x1080";
# position = "1920x0";
position = "0x0";
rate = "60.00";
# rotate = "left";
};
hdmi_config = {
enable = true;
primary = true;
crtc = 0;
mode = "1920x1080";
position = "0x0";
rate = "60.00";
};
in {
imports = [ ./common.nix ];
programs.autorandr.profiles = {
default = {
fingerprint = {
"HDMI-1-1" = ext_monitor_fingerprint;
"eDP-1-1" = edp_fingerprint;
};
config = {
"HDMI-1-1" = hdmi_config;
"eDP-1-1" = edp_config;
};
};
default_intel = {
fingerprint = {
"HDMI-1" = ext_monitor_fingerprint;
"eDP-1" = edp_fingerprint;
};
config = {
"HDMI-1" = hdmi_config;
"eDP-1" = edp_config;
};
};
nomonitor_intel = {
fingerprint."eDP-1" = edp_fingerprint;
config."eDP-1" = edp_config // { position = "0x0"; };
};
onlymonitor_intel = {
fingerprint = { "HDMI-1" = ext_monitor_fingerprint; };
config = { "HDMI-1" = hdmi_config; };
};
nomonitor_nvidia = {
fingerprint."eDP-1-1" = edp_fingerprint;
config."eDP-1-1" = edp_config // { position = "0x0"; };
};
onlymonitor_nvidia = {
fingerprint = { "HDMI-1-1" = ext_monitor_fingerprint; };
config = { "HDMI-1-1" = hdmi_config; };
};
};
}