tests: add cmd() function for typing less to get i3 to run a command
This commit is contained in:
parent
a0cd3c2bab
commit
a61480db99
|
@ -10,7 +10,7 @@ use List::Util qw(first);
|
||||||
use v5.10;
|
use v5.10;
|
||||||
|
|
||||||
use Exporter ();
|
use Exporter ();
|
||||||
our @EXPORT = qw(get_workspace_names get_unused_workspace get_ws_content get_ws get_focused open_empty_con open_standard_window);
|
our @EXPORT = qw(get_workspace_names get_unused_workspace get_ws_content get_ws get_focused open_empty_con open_standard_window cmd);
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
my $window_count = 0;
|
my $window_count = 0;
|
||||||
|
@ -119,4 +119,8 @@ sub get_focused {
|
||||||
return $lf;
|
return $lf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub cmd {
|
||||||
|
i3("/tmp/nestedcons")->command(@_)->recv
|
||||||
|
}
|
||||||
|
|
||||||
1
|
1
|
||||||
|
|
Loading…
Reference in New Issue