mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
autorandr: add rotate option
This commit is contained in:
parent
5641ee3f94
commit
6aa44d62ad
1 changed files with 9 additions and 0 deletions
|
@ -72,6 +72,13 @@ let
|
||||||
default = "";
|
default = "";
|
||||||
example = "1.0:0.909:0.833";
|
example = "1.0:0.909:0.833";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rotate = mkOption {
|
||||||
|
type = types.nullOr (types.enum ["normal" "left" "right" "inverted"]);
|
||||||
|
description = "Output rotate configuration.";
|
||||||
|
default = null;
|
||||||
|
example = "left";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -142,6 +149,7 @@ let
|
||||||
${optionalString (config.gamma != "") "gamma ${config.gamma}"}
|
${optionalString (config.gamma != "") "gamma ${config.gamma}"}
|
||||||
${optionalString (config.mode != "") "mode ${config.mode}"}
|
${optionalString (config.mode != "") "mode ${config.mode}"}
|
||||||
${optionalString (config.rate != "") "rate ${config.rate}"}
|
${optionalString (config.rate != "") "rate ${config.rate}"}
|
||||||
|
${optionalString (config.rotate != null) "rotate ${config.rotate}"}
|
||||||
'' else ''
|
'' else ''
|
||||||
output ${name}
|
output ${name}
|
||||||
off
|
off
|
||||||
|
@ -206,6 +214,7 @@ in
|
||||||
mode = "3840x2160";
|
mode = "3840x2160";
|
||||||
gamma = "1.0:0.909:0.833";
|
gamma = "1.0:0.909:0.833";
|
||||||
rate = "60.00";
|
rate = "60.00";
|
||||||
|
rotate = "left";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
hooks.postswitch = readFile ./work-postswitch.sh;
|
hooks.postswitch = readFile ./work-postswitch.sh;
|
||||||
|
|
Loading…
Reference in a new issue