in reply to Re^2: scripting i3 with Perl
in thread scripting i3 with Perl
Maybe there is an error? The AnyEvent::i3 documentation mentions that ->command returns a result:
use Data::Dumper; sub handle { my($data)=@_; if($data->{change} eq "empty") { print "empty workspace!!\n"; my $switched; $switched = $i3->command("workspace 1")->cb(sub { my( $reply ) = @_; print "Switched back to workspace 1\n"; undef $switched; use Data::Dumper; print Dumper $reply; }); } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: scripting i3 with Perl
by morgon (Priest) on Feb 02, 2019 at 10:32 UTC | |
by Corion (Patriarch) on Feb 02, 2019 at 13:01 UTC | |
by morgon (Priest) on Feb 02, 2019 at 13:43 UTC |