aboutsummaryrefslogtreecommitdiff
path: root/lux.1
blob: 51110f3398b85477a712ee800ff1d023198e7785 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
.\" BSD Zero Clause License
.\"
.\" Copyright (c) 2022 Thomas Voss
.\"
.\" Permission to use, copy, modify, and/or distribute this software for any
.\" purpose with or without fee is hereby granted.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
.\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
.\" AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
.\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
.\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
.\" OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.Dd $Mdocdate: November 16 2022 $
.Dt LUX 1
.Os Linux
.Sh NAME
.Nm lux
.Nd query and modify display brightness
.Sh SYNOPSIS
.Nm
.Op Fl gGm
.Op Fl dDiIsS Ar val
.Sh DESCRIPTION
The
.Nm
utility allows you to get display brightness information as well as set it.
When invoked without any arguments,
.Nm
will print the current brightness level as a percentage
.Po
.Dq 45.000000
means that the current brightness level is 45%
.Pc .
.Pp
All flags besides the
.Fl m
flag have both lowercase and uppercase variants.
The lowercase variants operate in terms of brightness units in the range of
.Bq 0, MAX
where MAX is a system dependent maximum obtainable with the
.Fl m
flag.
The uppercase variants operate in terms of percentages without a percent symbol
.Pq Sq %
as a suffix.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl d Ar val , Fl Fl decrease Ns = Ns Ar val
Decrease the current display brightness by
.Ar val
brightness units.
.It Fl D Ar val , Fl Fl decrease-percent Ns = Ns Ar val
Decrease the current display brightness to
.Ar val
percent.
.It Fl g , Fl Fl get
Print the raw current display brightness level.
.It Fl G , Fl Fl get-percent
Print the current display brightness level as a percentage.
.It Fl i Ar val , Fl Fl increase Ns = Ns Ar val
Increase the current display brightness to
.Ar val
brightness units.
.It Fl I Ar val , Fl Fl increase-percent Ns = Ns Ar val
Increase the current display brightness to
.Ar val
percent.
.It Fl m , Fl Fl max
Print the raw maximum display brightness level.
.It Fl s Ar val , Fl Fl set Ns = Ns Ar val
Set the current display brightness to
.Ar val
brightness units.
.It Fl S Ar val , Fl Fl set-percent Ns = Ns Ar val
Set the current display brightness to
.Ar val
percent.
.El
.Sh EXIT STATUS
.Ex -std
.Sh EXAMPLES
Get the current display brightness as a percentage:
.Pp
.Dl $ lux
.Pp
Increase the current display brightness by 15% and then print out the new
brightness level as a percentage:
.Pp
.Dl $ lux -I 15 -G
.Sh SEE ALSO
.Xr lux.h 0
.Sh AUTHORS
.An Thomas Voss Aq Mt mail@thomasvoss.com