# new_container changed only the statement name to workspace_layout
if ($statement eq 'new_container') {
- # TODO: new_container stack-limit
print "workspace_layout$parameters\n";
next;
}
restart
reload
exit
- stack-limit
);
my ($statement, $key, $command) = ($line =~ /([a-zA-Z_-]+)\s+([^\s]+)\s+(.*)/);
# simple replacements
my @replace = (
qr/^s/ => 'layout stacking',
- qr/^d/ => 'layout default',
+ qr/^d/ => 'layout toggle split',
qr/^T/ => 'layout tabbed',
qr/^f($|[^go])/ => 'fullscreen',
qr/^fg/ => 'fullscreen global',
if ($command =~ /^m[0-9]+/) {
my ($number) = ($command =~ /^m([0-9]+)/);
if (exists $workspace_names{$number}) {
- print qq|$statement $key move workspace $workspace_names{$number}\n|;
+ print qq|$statement $key move container to workspace $workspace_names{$number}\n|;
return;
} else {
- print qq|$statement $key move workspace $number\n|;
+ print qq|$statement $key move container to workspace $number\n|;
return;
}
}
# NOTE: This is not 100% accurate, as it only works for one level
# of nested containers. As this is a common use case, we use 'focus
# parent; $command' nevertheless. For advanced use cases, the user
- # has to modify his config.
+ # has to modify their config.
print "$statement $key focus parent; $command\n";
}
return;
# add an i3bar invocation automatically if no 'workspace_bar no' was found
if ($workspace_bar) {
print "\n";
- print "# XXX: Automatically added a call to i3bar to provide a workspace bar\n";
- print "exec i3status | i3bar -d\n";
+ print "# XXX: Automatically added a bar configuration\n";
+ print "bar {\n";
+ print " status_command i3status\n";
+ print "}\n";
}