Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash
|
|
|
|
source $HOME/.config/config.env
|
|
|
|
pid=$(pidof redshift)
|
|
|
|
case $BLOCK_BUTTON in
|
|
1)
|
|
redshift -x
|
|
if [ ! "$pid" = "" ]; then
|
|
kill -9 $pid
|
|
redshift -x
|
|
pid=""
|
|
else
|
|
redshift -r -l "$LATLONG" > /dev/null 2> /dev/null &
|
|
pid="1"
|
|
fi;;
|
|
esac
|
|
|
|
if [ "$pid" = "" ]; then
|
|
echo "^c#ebcb8b^^d^"
|
|
else
|
|
echo "^c#ebcb8b^^d^"
|
|
fi
|