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.

24 lines
375 B

4 years ago
4 years ago
  1. #!/bin/bash
  2. source $HOME/.config/config.env
  3. pid=$(pidof redshift)
  4. case $BLOCK_BUTTON in
  5. 1)
  6. redshift -x
  7. if [ ! "$pid" = "" ]; then
  8. kill -9 $pid
  9. redshift -x
  10. pid=""
  11. else
  12. redshift -r -l "$LATLONG" > /dev/null 2> /dev/null &
  13. pid="1"
  14. fi;;
  15. esac
  16. if [ "$pid" = "" ]; then
  17. echo "^c#ebcb8b^^d^"
  18. else
  19. echo "^c#ebcb8b^^d^"
  20. fi