Update nightlight

use `ifinstalled` to check for `xsct`
This commit is contained in:
Kelly Roberts 2022-09-01 05:06:40 +00:00 committed by GitHub
parent 4dbcc84076
commit c330624dec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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