about summary refs log tree commit diff
path: root/scripts/toggle-redshift.sh
blob: bd70f60ed63f79e934348042f809481bb3ddfdc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

if ! pgrep redshift
then
    redshift -c "$XDG_CONFIG_HOME/redshift.conf" &
    disown redshift
else
    pkill redshift
fi

Consider giving Nix/NixOS a try! <3