Merge pull request #281 from bebehei/patch-1
Change documentation concerning hooks
This commit is contained in:
+2
-2
@@ -149,14 +149,14 @@ lat=55.7
|
|||||||
lon=12.6
|
lon=12.6
|
||||||
.fi
|
.fi
|
||||||
.SH HOOKS
|
.SH HOOKS
|
||||||
Executable files (e.g. scripts) placed in `~/.config/redshift/hooks'
|
Executables (e.g. scripts) placed in folder `~/.config/redshift/hooks'
|
||||||
will be run when a certain event happens. The first parameter to the
|
will be run when a certain event happens. The first parameter to the
|
||||||
script indicates the event and further parameters may indicate
|
script indicates the event and further parameters may indicate
|
||||||
more details about the event. The event `period-changed' is indicated
|
more details about the event. The event `period-changed' is indicated
|
||||||
when the period changes (`night', `daytime', `transition'). The second
|
when the period changes (`night', `daytime', `transition'). The second
|
||||||
parameter is the old period and the third is the new period. The event
|
parameter is the old period and the third is the new period. The event
|
||||||
is also signaled when Redshift starts up with the old period set to
|
is also signaled when Redshift starts up with the old period set to
|
||||||
`none'.
|
`none'. Any dotfiles in the folder are skipped.
|
||||||
|
|
||||||
A simple script to handle these events can be written like this:
|
A simple script to handle these events can be written like this:
|
||||||
.IP
|
.IP
|
||||||
|
|||||||
Reference in New Issue
Block a user