1 2 3 4 5 6 7 8 9
#!/usr/bin/env bash if [[ $(pgrep 'redshift') ]] then pkill "redshift" else redshift -c "${XDG_CONFIG_HOME}/redshift.conf" & disown redshift fi
Consider giving Nix/NixOS a try! <3