diff --git a/sway/gammastep.pl b/sway/gammastep.pl index 69878af..7a84a37 100755 --- a/sway/gammastep.pl +++ b/sway/gammastep.pl @@ -13,6 +13,13 @@ my $lat_lon = fetch_lat_lon($location); my $pid = fork; unless ($pid) { + open(my $fh, ">", $ENV{HOME}."/.spool/gammastep.pid"); + print $fh $$; + close($fh); + open($fh, ">", $ENV{HOME}."/.spool/gammastep.status"); + print $fh 1; + close($fh); + open STDIN, '/dev/null'; open STDOUT, '>>/dev/null'; open STDERR, '>>/dev/null';