|Pathologically Eclectic Rubbish Lister|
scripting i3 with Perlby morgon (Priest)
|on Feb 02, 2019 at 06:42 UTC||Need Help??|
morgon has asked for the wisdom of the Perl Monks concerning the following question:
I am having problems scripting the window-manager i3 with perl using AnyEvent::I3 and as I could not get any help in an i3-forum, I try my luck here...
Running this changes to workspace 1.
And this also works:
Running this prints "empty workspace!!" whenever a workspace become empty.
What I want now is to combine the logic, so whenever a workspace becomes empty we change to workspace 1.
Here is my attempt:
However this does not work. It prints "empty workspace!!" ok, but it does not send the command, the error is: