about summary refs log tree commit diff
path: root/scripts/toggle-redshift.sh
blob: 4dbcc387f5882d0da6aa75a6c2a9ea446a808b20 (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