transifere configuracion de monitores a plataform

This commit is contained in:
Fabián Montero 2022-11-29 18:16:50 -06:00
parent d2ff948cd8
commit d00d673425
4 changed files with 48 additions and 12 deletions

View file

@ -59,11 +59,6 @@ with lib;
command = "${pkgs.networkmanagerapplet}/bin/nm-applet";
notification = false;
}
{
command = "${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-0 --primary --mode 1920x1080 --rate 143.85 --pos 0x0 --rotate normal --output DisplayPort-1 --mode 1920x1080 --rate 59.94 --pos 1920x0 --rotate normal --output HDMI-A-0 --off --output HDMI-A-1 --off --output DVI-D-0 --off";
notification = false;
always = true;
}
{
command = "${pkgs.feh}/bin/feh --bg-scale ${config.home.homeDirectory}/Pictures/wallpapers/carina_jwst.jpg";
notification = false;

8
home/gui/randr.nix Normal file
View file

@ -0,0 +1,8 @@
{ config, pkgs, lib, ... } :
with lib;
{
programs.autorandr = {
enable = true;
profiles."${config.local.platform}" = config.local.display.autorandrProfile;
}
}

View file

@ -14,6 +14,10 @@ with lib;
"1" = mkOption {
type = nullOr str;
};
autorandrProfile = {
type = attrs;
};
};
nixos = mkOption {
@ -21,4 +25,4 @@ with lib;
};
};
}
}

View file

@ -1,8 +1,37 @@
{
config.local.display = {
"0" = "DisplayPort-0";
"1" = "DisplayPort-1";
};
config.local = {
display = {
"0" = "DisplayPort-0";
"1" = "DisplayPort-1";
config.local.nixos = true;
}
autorandrProfile = {
fingerprint = {
DisplayPort-0 = "00ffffffffffff003669a03bd4040000231e0104a5341d783bd005ac5048a627125054bfcf00814081809500714f81c0b30001010101023a801871382d40582c450009252100001e0882805070384d400820f80c09252100001a000000fd003090b4b422010a202020202020000000fc004d53492047323443340a20202001a2020320f14d010304131f120211900e0f1d1e230907078301000065030c001000866f80a0703840403020350009252100001a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e9";
DisplayPort-1 = "00ffffffffffff0009d1e77845540000061f0104a5351e783a0565a756529c270f5054a56b80d1c0b300a9c08180810081c001010101023a801871382d40582c45000f282100001e000000ff0039324d30303033323031510a20000000fd00324c1e5311010a202020202020000000fc0042656e51204757323438300a20019b02031cf14f901f041303120211011406071516052309070783010000023a801871382d40582c45000f282100001f011d8018711c1620582c25000f282100009f011d007251d01e206e2855000f282100001e8c0ad08a20e02d10103e96000f28210000180000000000000000000000000000000000000000000000000000008d";
};
config = {
DisplayPort-0 = {
enable = true;
primary = true;
position = "0x0";
mode = "1920x1080";
rate = "143.85";
rotate = "normal";
};
DisplayPort-1 = {
enable = true;
primary = false;
position = "1920x0";
mode = "1920x1080";
rate = "59.94";
rotate = "normal";
};
};
};
};
nixos = true;
};
}