From 13964faa53b09924bdd27328311ba27457b0b61d Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Wed, 16 Feb 2022 02:15:52 +0300 Subject: I hate the Antichrist --- scripts/toggle-redshift.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'scripts/toggle-redshift.sh') diff --git a/scripts/toggle-redshift.sh b/scripts/toggle-redshift.sh index 2813aea..2af8258 100755 --- a/scripts/toggle-redshift.sh +++ b/scripts/toggle-redshift.sh @@ -1,9 +1,8 @@ #!/usr/bin/env bash -if ! pgrep redshift > /dev/null 2>&1 -then - redshift & - disown redshift +if ! pgrep redshift >/dev/null 2>&1; then + redshift & + disown redshift else - pkill redshift + pkill redshift fi -- cgit 1.4.1