aboutsummaryrefslogtreecommitdiff
path: root/brightnessctl.1
diff options
context:
space:
mode:
authorBenjamin Barenblat <bbaren@google.com>2020-05-13 13:58:04 -0400
committerBenjamin Barenblat <bbaren@google.com>2020-05-13 15:15:06 -0400
commit99a0db84dd16935f9357176248c824bcc372ee43 (patch)
tree94ecac73c9f3a09e852711eb7ed6719ba77dfabd /brightnessctl.1
parent1763cf8ac3720104bdd72d5b631eed3b467e69fc (diff)
Support fractional valuesHEADmaster
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
Diffstat (limited to 'brightnessctl.1')
-rw-r--r--brightnessctl.14
1 files changed, 2 insertions, 2 deletions
diff --git a/brightnessctl.1 b/brightnessctl.1
index 83faf8d..d8c2065 100644
--- a/brightnessctl.1
+++ b/brightnessctl.1
@@ -124,9 +124,9 @@ as a value or a delta from the current value. For example:
Sets brightness to 500.
.P
.RE
-\fBbrightnessctl set 50%\fR
+\fBbrightnessctl set 50.75%\fR
.RS "4"
-Sets brightness to 50% of the maximum.
+Sets brightness to 50.75% of the maximum.
.P
.RE
\fBbrightnessctl set 50-\fR