aboutsummaryrefslogtreecommitdiffstats
path: root/src/hooks.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* one dir per subprojectMattias Andrée9 days1-249/+0
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* Add support for specifying hook fileMattias Andrée12 days1-25/+76
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* Misc stuffMattias Andrée2025-03-221-1/+1
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* Remove dependency on libsimple since it's not portableMattias Andrée2025-03-211-2/+4
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* RefactorMattias Andrée2025-03-211-2/+5
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* Major refactoring and some fixesMattias Andrée2025-03-161-68/+146
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* Misc improvementsMattias Andrée2025-03-081-1/+1
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* Misc improvementsMattias Andrée2025-03-071-17/+17
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* Update redshift to redshift-ngMattias Andrée2025-03-061-4/+4
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* style and some minor fixesMattias Andrée2025-03-061-1/+1
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* StyleMattias Andrée2025-03-061-13/+15
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* Mention after fork that SIGCHLD is ignoredMattias Andrée2025-03-051-0/+1
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* Style and warningsMattias Andrée2025-03-051-13/+23
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* Consistently use (locally defined) WINDOWS macro over mixing __WIN32__ and _WIN32Mattias Andrée2025-03-051-2/+2
| | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* 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".