mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-15 17:50:53 +00:00
kanshi: support adaptive sync (#4328)
This commit is contained in:
parent
a8f8f48320
commit
6e1eff9aac
1 changed files with 15 additions and 2 deletions
|
@ -80,15 +80,28 @@ let
|
|||
Sets the output transform.
|
||||
'';
|
||||
};
|
||||
|
||||
adaptiveSync = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
example = true;
|
||||
description = ''
|
||||
Enables or disables adaptive synchronization
|
||||
(aka. Variable Refresh Rate).
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
outputStr = { criteria, status, mode, position, scale, transform, ... }:
|
||||
outputStr =
|
||||
{ criteria, status, mode, position, scale, transform, adaptiveSync, ... }:
|
||||
''output "${criteria}"'' + optionalString (status != null) " ${status}"
|
||||
+ optionalString (mode != null) " mode ${mode}"
|
||||
+ optionalString (position != null) " position ${position}"
|
||||
+ optionalString (scale != null) " scale ${toString scale}"
|
||||
+ optionalString (transform != null) " transform ${transform}";
|
||||
+ optionalString (transform != null) " transform ${transform}"
|
||||
+ optionalString (adaptiveSync != null)
|
||||
" adaptive_sync ${if adaptiveSync then "on" else "off"}";
|
||||
|
||||
profileModule = types.submodule {
|
||||
options = {
|
||||
|
|
Loading…
Reference in a new issue