autorandr: add filter option (#2795)
xrandr's filter option is useful for enabling integer scaling on displays that don't have support for it at a graphics card level.
This commit is contained in:
parent
8eb7c009f0
commit
970b57fd3c
2 changed files with 10 additions and 0 deletions
|
|
@ -176,6 +176,13 @@ let
|
|||
}
|
||||
'';
|
||||
};
|
||||
|
||||
filter = mkOption {
|
||||
type = types.nullOr (types.enum [ "bilinear" "nearest" ]);
|
||||
description = "Interpolation method to be used for scaling the output.";
|
||||
default = null;
|
||||
example = "nearest";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -261,6 +268,7 @@ let
|
|||
++ optional (config.mode != "") "mode ${config.mode}"
|
||||
++ optional (config.rate != "") "rate ${config.rate}"
|
||||
++ optional (config.rotate != null) "rotate ${config.rotate}"
|
||||
++ optional (config.filter != null) "filter ${config.filter}"
|
||||
++ optional (config.transform != null) ("transform "
|
||||
+ concatMapStringsSep "," toString (flatten config.transform))
|
||||
++ optional (config.scale != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue