speed up transition

This commit is contained in:
Kelly Roberts 2022-09-01 09:24:37 -07:00
parent cee6be0152
commit 3cb3edf5e9
No known key found for this signature in database
GPG Key ID: DE0702E8A90CB0EB

View File

@ -11,8 +11,8 @@ colortemp="$(xsct | cut -d' ' -f5)"
if [ "$colortemp" -ge "6500" ]; then if [ "$colortemp" -ge "6500" ]; then
notify-send "🌙 Night Light Enabled (${settemp}K)" notify-send "🌙 Night Light Enabled (${settemp}K)"
for i in $(seq 6500 -100 ${settemp}); do xsct $i; sleep 0.1; done for i in $(seq 6500 -100 ${settemp}); do xsct $i; sleep 0.05; done
else else
notify-send "☀️ Night Light Disabled" notify-send "☀️ Night Light Disabled"
for i in $(seq ${settemp} 100 6500); do xsct $i; sleep 0.1; done for i in $(seq ${settemp} 100 6500); do xsct $i; sleep 0.05; done
fi fi