diff options
author | K900 <me@0upti.me> | 2024-04-09 23:23:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 23:23:59 +0300 |
commit | 2704f5bb2febb0bbee30e9c90229af028a891dc1 (patch) | |
tree | 92a5ef7ef9c4dce33879319189d292ab8b62186c /nixos/modules/services/misc | |
parent | e14b0d9e6450963232e25a5cb693a5f673de1957 (diff) | |
parent | dd1e21f39f07a43de49e90866869c23bad4cb31e (diff) |
Merge pull request #302595 from motiejus/autorandr-match-edid
nixos/autorandr: add --match-edid
Diffstat (limited to 'nixos/modules/services/misc')
-rw-r--r-- | nixos/modules/services/misc/autorandr.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/autorandr.nix b/nixos/modules/services/misc/autorandr.nix index aa96acb61306..22d1fb727477 100644 --- a/nixos/modules/services/misc/autorandr.nix +++ b/nixos/modules/services/misc/autorandr.nix @@ -260,6 +260,12 @@ in { 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 { type = hooksModule; description = lib.mdDoc "Global hook scripts"; @@ -351,7 +357,8 @@ in { --batch \ --change \ --default ${cfg.defaultTarget} \ - ${optionalString cfg.ignoreLid "--ignore-lid"} + ${optionalString cfg.ignoreLid "--ignore-lid"} \ + ${optionalString cfg.matchEdid "--match-edid"} ''; Type = "oneshot"; RemainAfterExit = false; |