From c330624decd8a097b204e9da76529350d57f3ae5 Mon Sep 17 00:00:00 2001 From: Kelly Roberts <105584129+bubstance@users.noreply.github.com> Date: Thu, 1 Sep 2022 05:06:40 +0000 Subject: [PATCH] Update nightlight use `ifinstalled` to check for `xsct` --- .local/bin/nightlight | 1 + 1 file changed, 1 insertion(+) diff --git a/.local/bin/nightlight b/.local/bin/nightlight index 0c48c561..8684a7f5 100755 --- a/.local/bin/nightlight +++ b/.local/bin/nightlight @@ -3,6 +3,7 @@ # toggle for a "nightlight" color temperature # requires xsct +ifinstalled "xsct" || exit colortemp="$(xsct | cut -d' ' -f5)" if [ "$colortemp" -ge "6500" ]; then