use v5.10;
use Exporter ();
-our @EXPORT = qw(get_workspace_names get_unused_workspace get_ws_content get_ws get_focused);
+our @EXPORT = qw(get_workspace_names get_unused_workspace get_ws_content get_ws get_focused open_empty_con);
BEGIN {
my $window_count = 0;
return $window;
}
+sub open_empty_con {
+ my ($i3) = @_;
+
+ my $reply = $i3->command('open')->recv;
+ return $reply->{id};
+}
+
sub get_workspace_names {
my $i3 = i3("/tmp/nestedcons");
# TODO: use correct command as soon as AnyEvent::i3 is updated