aboutsummaryrefslogtreecommitdiffstats
path: root/src/hooks.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup and style update (avoid typedef)Mattias Andrée2025-03-051-11/+1
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* Unify header files (so far most)Mattias Andrée2025-03-051-2/+1
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* redshift: Add hooks for user actions on period switchJon Lund Steffensen2014-12-281-0/+113
Hooks are executable scripts in ~/.config/redshift/hooks/ that are 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 signaled when Redshift starts up with the old period set to "none".