aboutsummaryrefslogtreecommitdiff
path: root/media-control.raku
blob: 0345f7d614ec72eecafec22cfb7b5d7e42caae08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env rakudo 
use v6.d;
use lib 'inst#local','file#lib';
use Config::TOML;
use App::MediaControl;
 
$*OUT.out-buffer = False;
 
my $config = from-toml(file=>'config.toml');
 
my App::MediaControl $app .= new(:$config);
 
$app.start;
 
say "listening";
 
react whenever signal(SIGINT{
    $app.stop;
    exit;
}