3 BEGIN { $| = 1 } # flush \n
12 $i3->connect->recv or die "Error connecting to i3";
20 say "$ev:$msg->{'change'}";
25 })->recv->{success}) {
26 say "Successfully subscribed to $ev-event";
32 say "Subscribe to i3-events";
33 say "Usage: $0 workspace|output|mode|window|barconfig_update|binding [dump]";
34 say "Example: $0 workspace dump window binding dump";
41 if($nextArg and $nextArg eq "dump") {
45 subscribe("$arg", $dump);