Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: scripting i3 with Perl

by morgon (Priest)
on Feb 02, 2019 at 10:32 UTC ( #1229283=note: print w/replies, xml ) Need Help??


in reply to Re^3: scripting i3 with Perl
in thread scripting i3 with Perl

This is what I get:
empty workspace!! Switched back to workspace 1 $VAR1 = bless( { '_ae_sent' => [ [ { 'success' => bless( do{\(my $o = +1)}, 'JSON::PP::Boolean' ) } ] ] }, 'AnyEvent::CondVar' );
However no switching occurs. No clue what is going on there...

Replies are listed 'Best First'.
Re^5: scripting i3 with Perl
by Corion (Pope) on Feb 02, 2019 at 13:01 UTC

    So, the i3 API tells you that all is well. This sounds more like a problem with i3 to me. Maybe consider delaying the switching a bit. Set a timer (AnyEvent->timer(after => 3, sub {...}) and trigger the desktop switch from that timed callback instead of triggering it directly.

      Thanks for your input but if I have to resort to experimentation even for the most trivial cases, this is not for me.

      I'll do my i3 scripting in python then.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1229283]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2020-05-28 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (165 votes). Check out past polls.

    Notices?