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.

26 lines
451 B

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