Skip to content

Instantly share code, notes, and snippets.

@igorrs
Created March 11, 2014 05:41

Revisions

  1. igorrs created this gist Mar 11, 2014.
    7 changes: 7 additions & 0 deletions gtk-redshift.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/usr/bin/env bash
    while true; do
    pgrep redshift && exit # Already running.
    gtk-redshift
    # Died? Check again after 10 seconds.
    sleep 10
    done