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

if ! pgrep redshift > /dev/null 2>&1
then
    redshift &
    disown redshift
else
    pkill redshift
fi

Consider giving Nix/NixOS a try! <3