Merge pull request #302595 from motiejus/autorandr-match-edid
nixos/autorandr: add --match-edid
This commit is contained in:
commit
2704f5bb2f
|
@ -260,6 +260,12 @@ in {
|
||||||
description = lib.mdDoc "Treat outputs as connected even if their lids are closed";
|
description = lib.mdDoc "Treat outputs as connected even if their lids are closed";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
matchEdid = mkOption {
|
||||||
|
default = false;
|
||||||
|
type = types.bool;
|
||||||
|
description = lib.mdDoc "Match displays based on edid instead of name";
|
||||||
|
};
|
||||||
|
|
||||||
hooks = mkOption {
|
hooks = mkOption {
|
||||||
type = hooksModule;
|
type = hooksModule;
|
||||||
description = lib.mdDoc "Global hook scripts";
|
description = lib.mdDoc "Global hook scripts";
|
||||||
|
@ -351,7 +357,8 @@ in {
|
||||||
--batch \
|
--batch \
|
||||||
--change \
|
--change \
|
||||||
--default ${cfg.defaultTarget} \
|
--default ${cfg.defaultTarget} \
|
||||||
${optionalString cfg.ignoreLid "--ignore-lid"}
|
${optionalString cfg.ignoreLid "--ignore-lid"} \
|
||||||
|
${optionalString cfg.matchEdid "--match-edid"}
|
||||||
'';
|
'';
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = false;
|
RemainAfterExit = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user