From 99a0db84dd16935f9357176248c824bcc372ee43 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Wed, 13 May 2020 13:58:04 -0400 Subject: Support fractional values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Treat values passed on the command line as floats instead of longs. This allows you to specify fractional percentages (and fractional absolute values, too, though they’ll just be rounded down, so they’re not particularly useful). Report the display brightness as a percentage with two decimal places rather than zero. To ensure backward compatibility in machine-readable mode, report the high-precision percentage in a new field rather than replacing the existing field. This does cause some redundancy in the output, but that’s better than breaking scripts that assume the 4th field is an integer followed by “%”. Closes: https://github.com/Hummer12007/brightnessctl/issues/50 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 4a710c9..a260a8d 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Operations: Valid values: specific value Example: 500 - percentage value Example: 50% + percentage value Example: 50.5% specific delta Example: 50- or +10 percentage delta Example: 50%- or +10% ``` -- cgit v1.2.3