aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--LICENSE2
-rw-r--r--README14
-rw-r--r--TODO1
-rw-r--r--radharc.1167
4 files changed, 175 insertions, 9 deletions
diff --git a/LICENSE b/LICENSE
index 8b05a21..aca077a 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
ISC License
-© 2019 Mattias Andrée <m@maandree.se>
+© 2019, 2024 Mattias Andrée <m@maandree.se>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
diff --git a/README b/README
index 51af044..e63e2dc 100644
--- a/README
+++ b/README
@@ -3,7 +3,7 @@ NAME
SYNOPSIS
radharc [-M method] [-S site] [-c crtc] ... [-R rule] [-p priority] [-f fade-in]
- [-F fade-out] [-h [high-temp][@high-elev]] [-l [high-temp][@high-elev]]
+ [-F fade-out] [-h [high-temp][@high-elev]] [-l [low-temp][@low-elev]]
(-L latitude:longitude | -t temperature [-d] | -x)
DESCRIPTION
@@ -32,19 +32,19 @@ OPTIONS
starts). The value is interpreted a real number of seconds.
-F fade-out
- Set effect fade-in time (gradual restoration when the program
+ Set effect fade-out time (gradual restoration when the program
stops). The value is interpreted a real number of seconds.
-h [high-temp][@high-evel]
- Selects that the colour temperature shall be high-temp
- Kelvins when the Sun's elevation is high-evel or higher above
+ Selects that the colour temperature shall be high-temp Kelvins
+ when the Sun's elevation is high-evel degrees or higher above
the horizon.
This option only has effect when combined with the -L option.
-l [low-temp][@low-evel]
- Selects that the colour temperature shall be low-temp
- Kelvins when the Sun's elevation is lower-evel or lower above
+ Selects that the colour temperature shall be low-temp Kelvins
+ when the Sun's elevation is low-evel degrees or lower above
the horizon.
This option only has effect when combined with the -L option.
@@ -84,7 +84,7 @@ OPTIONS
If priority is '?', the utility's default priority is printed.
-R rule
- Set the rule of of the filter to rule. This is the last part of
+ Set the rule of the filter to rule. This is the last part of
the filter's identifier (class). The default rule is standard.
-S site
diff --git a/TODO b/TODO
index afa1c29..764520b 100644
--- a/TODO
+++ b/TODO
@@ -2,5 +2,4 @@ Fade out on SIGINT, abrupt on second SIGINT.
On SIGHUP, exit but keep effect.
On fade in, query active setting and start from there.
Use bus for changing settings and CRTCs online.
-Add man page.
Add "-t ?" and "-t get" for getting the current temperature.
diff --git a/radharc.1 b/radharc.1
new file mode 100644
index 0000000..baea3a3
--- /dev/null
+++ b/radharc.1
@@ -0,0 +1,167 @@
+.TH RADHARC 1 radharc
+.SH NAME
+radharc \- Adjust display colour temperature after the Sun
+
+.SH SYNOPSIS
+.B radharc
+[-M
+.IR method ]
+[-S
+.IR site ]
+[-c
+.IR crtc "] ..."
+[-R
+.IR rule ]
+[-p
+.IR priority ]
+[-f
+.IR fade-in ]
+[-F
+.IR fade-out ]
+[-h
+.RI [ high-temp ][\fB@\fP high-elev ]]
+[-l
+.RI [ low-temp ][\fB@\fP low-elev ]]
+(-L
+.IR latitude : longitude
+| -t
+.I temperature
+[-d] | -x)
+
+.SH DESCRIPTION
+.B radharc
+adjusts the colour temperature of your monitor according
+the the elevation of the Sun. This is intended to reduce
+eye strain reduce deplayed sleep phase syndrome.
+.PP
+.B radharc
+is inspired by
+.BR redshift (1)
+but uses
+.BR libcoopgamma (7)
+to allow it to be used alongside other programs that also
+modify the monitors colour output, as long as the also use
+.RB libcoopgamma (7).
+
+.SH OPTIONS
+The following options are supported:
+.TP
+.BR -c \ \fIcrtc\fP
+Apply the filter to the CRTC with the monitor whose EDID is crtc.
+By default, the filter is applied to all monitors.
+
+If
+.I crtc
+is
+.RB ' ? ',
+all available CRTC's are listed.
+.TP
+.B -d
+Keep the process alive and remove the filter on death.
+.TP
+.BR -f \ \fIfade-in\fP
+Set effect fade-in time (gradual application when the program
+starts). The value is interpreted a real number of seconds.
+.TP
+.BR -F \ \fIfade-out\fP
+Set effect fade-out time (gradual restoration when the program
+stops). The value is interpreted a real number of seconds.
+.TP
+.BR -h \ [\fIhigh-temp\fP][ @ \fIhigh-evel\fP]
+Selects that the colour temperature shall be
+.I high-temp
+Kelvins when the Sun's elevation is
+.I high-evel
+degrees or higher above the horizon.
+
+This option only has effect when combined with the
+.B -L
+option.
+.TP
+.BR -l \ [\fIlow-temp\fP][ @ \fIlow-evel\fP]
+Selects that the colour temperature shall be
+.I low-temp
+Kelvins when the Sun's elevation is
+.I low-evel
+degrees or lower above the horizon.
+
+This option only has effect when combined with the
+.B -L
+option.
+.TP
+.BR -L \ \fIlatitude\fP : \fIlongitude\fP
+Selects the location the Sun's elevation shall be calculated
+for. The program will run until it is manually terminated and
+continually readjust the colour temperature according the
+the Sun's elevation. The latitude and longitude shall be
+specified in decimal format. Positive numbers shall be used
+GPS coordinates north of the equator and GPS coordinates
+east of the prime meridian. Negative number shall be used
+for GPS coordinates south of the equator and GPS coordinates
+west of the prime meridian.
+.TP
+.BR -M \ \fImethod\fP
+Adjustment method name or number. Recognised names include:
+.TS
+tab(:);
+l l.
+\fBdummy\fP:Dummy method
+\fBrandr\fP:X RAndR
+\fBvidmode\fP:X VidMode
+\fBdrm\fP:Linux DRM
+\fBgdi\fP:Windows GDI
+\fBquartz\fP:Quartz Core Graphics
+.TE
+
+The adjustment methods are supported via
+.BR libgamma (7).
+Only methods that were enabled when
+.B libgamma
+was compiled will be supported.
+
+If
+.I method
+is
+.RB ' ? ',
+all available adjustment methods are printed.
+.TP
+.BR -p \ \fIpriority\fP
+Set the priority of the filter. Filters with higher priority
+are applied before filters with lower priority. The value must
+be a signed 64-bit integer (between -9223372036854775807 and
+9223372036854775807).
+.BR radharc 's
+default priority is -2305843009213693952.
+
+If
+.I priority
+is
+.RB ' ? ',
+the utility's default priority is printed.
+.TP
+.BR -R \ \fIrule\fP
+Set the rule of the filter to
+.IR rule .
+This is the last part of the filter's identifier
+(class). The default rule is
+.BR standard .
+.TP
+.BR -S \ \fIsite\fP
+Select the site to which to connect. For example
+.RB ' :0 ',
+for local display 0 when using X.
+.TP
+.BR -t \ \fItemperature\fP
+Colour temperature, in Kelvins, to apply.
+.TP
+.B -x
+Remove the currently applied filter.
+
+.SH OPERANDS
+No operands are supported.
+
+.SH SEE ALSO
+.BR coopgammad (1),
+.BR cg-tools (7),
+.BR redshift (1),
+.BR blueshift (1)