redshift
redshift copied to clipboard
hooks are not executed on return from screen lock
Describe the bug
hooks (placed in ~/.config/redshift/hooks) are not run when returning from login screen from locked session
To Reproduce lock screen (alternative wait for screensaver) and return to session (during period-change in redshift), a hook won't be run
test it simply with the debug test written as example in the man page:
#!/bin/sh
case $1 in
period-changed)
exec notify-send "Redshift" "Period changed to $3"
esac
to add the hook
mkdir -p ~/.config/redshift/hooks
nano ~/.config/redshift/hooks/debug-test.sh
# copy content from above
chmod +x ~/.config/redshift/hooks/debug-test.sh
Expected behavior the hook to be run on session return
Software versions (please complete the following information):
$ redshift -V
redshift 1.12
$ uname -a
Linux 5.4.0-66-generic #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
- [x] I have checked the FAQ and my issue is not mention there.