X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=i3-migrate-config-to-v4;h=5da4e26ed447d7b30316adec7fd81af1bf6b9f22;hp=4dd4418f70862cfaf2c74f5a437f2b7c5a53725d;hb=HEAD;hpb=96b219f27b33072af9afff687edac6a894dcbbc1 diff --git a/i3-migrate-config-to-v4 b/i3-migrate-config-to-v4 index 4dd4418f..5da4e26e 100755 --- a/i3-migrate-config-to-v4 +++ b/i3-migrate-config-to-v4 @@ -117,7 +117,6 @@ for my $line (@lines) { # 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; } @@ -184,7 +183,6 @@ sub convert_command { restart reload exit - stack-limit ); my ($statement, $key, $command) = ($line =~ /([a-zA-Z_-]+)\s+([^\s]+)\s+(.*)/); @@ -202,7 +200,7 @@ sub convert_command { # 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', @@ -316,10 +314,10 @@ sub convert_command { 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; } } @@ -341,7 +339,7 @@ sub convert_command { # 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; @@ -358,6 +356,8 @@ sub convert_command { # 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"; }