about summary refs log tree commit diff
path: root/scripts/toggle-redshift.sh
blob: 2af82583afbdb917b7062aefc17d7ffb4e620a20 (plain) (blame)
1
2
3
4
5
6
7
8
#!/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