dotfiles/eww/scripts/redshift.sh

17 lines
309 B
Bash
Executable file

#!/usr/bin/bash
if [ "$(pgrep -x redshift)" ]; then
period=$(redshift -p 2> /dev/null | grep Period | awk '{print $2}')
if [[ $period == 'Night' ]]; then
echo "󰖔"
#echo ""
#echo ""
#echo "鈴"
elif [[ $period == 'Transition' ]]; then
echo "󰖚"
else
echo ""
fi
else
echo ""
fi