Dotfiles/.config/polybar/themes/monolit-dracula/scripts/redshift
horhik aec58dae23 split polybar by themes 2020-09-05 14:43:37 +03:00
..
README.md split polybar by themes 2020-09-05 14:43:37 +03:00
env.sh split polybar by themes 2020-09-05 14:43:37 +03:00
redshift.sh split polybar by themes 2020-09-05 14:43:37 +03:00

README.md

polybar-redshift

Usage

Scroll to increase and decrease temperature
Left click to toggle redshift on/off

Configuration

Make sure $envFile in redshift.sh points to correct location of env.sh

Add scripts to ~/.config/polybar/scripts and load module from polybar

[module/redshift]
type = custom/script
format-prefix = " "  
exec = source ~/.config/polybar/scripts/env.sh && ~/.config/polybar/scripts/redshift.sh temperature 
click-left = source ~/.config/polybar/scripts/env.sh && ~/.config/polybar/scripts/redshift.sh toggle 
scroll-up = source ~/.config/polybar/scripts/env.sh && ~/.config/polybar/scripts/redshift.sh increase
scroll-down = source ~/.config/polybar/scripts/env.sh && ~/.config/polybar/scripts/redshift.sh decrease
interval=0.5