diff --git a/mpv/.config/mpv/scripts/redshift_toggle.lua b/mpv/.config/mpv/scripts/redshift_toggle.lua index e039285..9d8fdf2 100755 --- a/mpv/.config/mpv/scripts/redshift_toggle.lua +++ b/mpv/.config/mpv/scripts/redshift_toggle.lua @@ -1,10 +1,9 @@ -- Toggle redshift when viewing videos with mpv -if os.execute("pgrep -x redshift >/dev/null") ~= 0 +if os.execute("pgrep -x redshift >/dev/null") == 0 then - return + return end - -- Consider that redshift is enabled when starting rs_enabled = true