dotfiles/sysmenu/script/redshift_period.sh

9 lines
150 B
Bash
Raw Normal View History

2021-09-26 01:52:03 -04:00
#!/usr/bin/bash
if pidof redshift > /dev/null; then
echo $(redshift -p 2> /dev/null | grep "Period" | awk '{ print $2 }')
else
echo "Disabled"
fi