2 # vim:ts=4:sw=4:expandtab
3 # !NO_I3_INSTANCE! will prevent complete-run.pl from starting i3
5 # checks if i3 starts up on workspace '1' or the first configured named workspace
9 ##############################################################
10 # 1: i3 should start with workspace '1'
11 ##############################################################
15 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
18 my $pid = launch_with_config($config);
20 my @names = @{get_workspace_names()};
21 is_deeply(\@names, [ '1' ], 'i3 starts on workspace 1 without any configuration');
23 exit_gracefully($pid);
25 ##############################################################
26 # 2: with named workspaces, i3 should start on the first named one
27 ##############################################################
31 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
33 bindsym Mod1+1 workspace foobar
36 $pid = launch_with_config($config);
38 @names = @{get_workspace_names()};
39 is_deeply(\@names, [ 'foobar' ], 'i3 starts on named workspace foobar');
41 exit_gracefully($pid);
43 ##############################################################
44 # 3: the same test as 2, but with a quoted workspace name
45 ##############################################################
49 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
51 bindsym Mod1+1 workspace "foobar"
54 $pid = launch_with_config($config);
56 @names = @{get_workspace_names()};
57 is_deeply(\@names, [ 'foobar' ], 'i3 starts on named workspace foobar');
59 exit_gracefully($pid);