I was looking for a way to disable redshift when playing videos on fullscreen, and the only thing I found working was a script on an 8 year old reddit post.
I’ve tested the script works when I run it from the terminal.
What I’m trying to achieve is to run it automatically.
I’ve tried everything from adding login-script from autostart option in KDE Settings to adding an entry in systemd. But it doesn’t work.
Looking at htop, the script seems to be running when added in autostart menu, but it doesn’t seem to work.
It only works when I manually execute it in the terminal.
I think there is a way to achieve this, I’m new to linux and I can’t figure it out.
Any help is appreciated.
For the script to work you must run redshift first. To make sure, put “sleep 30” at the autostart command. This worked for me (sh -c “sleep 30 && ./redshiftoff.sh &”) in xfce desktop
Excuse my bad english.