Use POSIX tools instead of pgrep
1 files changed, 1 insertions(+), 1 deletions(-) M .config/mpv/scripts/redshift_toggle.lua
M .config/mpv/scripts/redshift_toggle.lua => .config/mpv/scripts/redshift_toggle.lua +1 -1
@@ 1,6 1,6 @@ -- Toggle redshift when viewing videos with mpv -if os.execute("pgrep -x redshift >/dev/null") ~= 0 +if os.execute("ps -a -o comm= | grep -qFx redshift") ~= 0 then return end