From 1eb0314f80d0a14b77841d6018d4a83f70c1c704 Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Sat, 28 Nov 2015 00:56:16 +0100 Subject: Change documentation concerning hooks --- redshift.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'redshift.1') diff --git a/redshift.1 b/redshift.1 index c9667aa..a822ab9 100644 --- a/redshift.1 +++ b/redshift.1 @@ -149,14 +149,14 @@ lat=55.7 lon=12.6 .fi .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 script indicates the event and further parameters may indicate more details about the event. The event `period-changed' is indicated when the period changes (`night', `daytime', `transition'). The second 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 -`none'. +`none'. Any dotfiles in the folder are skipped. A simple script to handle these events can be written like this: .IP -- cgit v1.2.3-70-g09d2