~q3cpma/dotfiles

32fe22a9389179af39cd0d982bd7aa739fe66a26 — q3cpma 1 year, 9 months ago 1cc7220
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