dotfiles/eww/scripts/redshift.sh

18 lines
309 B
Bash
Raw Normal View History

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