mtworx: autorandr with lid closed

This commit is contained in:
Motiejus Jakštys 2024-03-15 11:11:04 +02:00 committed by Motiejus Jakštys
parent 25cf36de29
commit 806e2c557a

View File

@ -126,7 +126,18 @@ in {
}; };
services = { services = {
autorandr.profiles = { autorandr.profiles = let
work-DP-3 = {
eDP-1.enable = false;
DP-3 = {
enable = true;
primary = true;
mode = "3840x2160";
crtc = 1;
position = "0x0";
};
};
in {
default = { default = {
fingerprint = {inherit (randr) eDP-1;}; fingerprint = {inherit (randr) eDP-1;};
config = { config = {
@ -166,21 +177,17 @@ in {
}; };
}; };
work = { work-lidopen = {
fingerprint = { fingerprint = {
inherit (randr) eDP-1; inherit (randr) eDP-1;
inherit (randr.work) DP-3; inherit (randr.work) DP-3;
}; };
config = { config = work-DP-3;
eDP-1.enable = false;
DP-3 = {
enable = true;
primary = true;
mode = "3840x2160";
crtc = 1;
position = "0x0";
};
}; };
work-lidclosed = {
fingerprint = {inherit (randr) eDP-1;};
config = work-DP-3;
}; };
}; };