X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3-migrate-config-to-v4;h=5da4e26ed447d7b30316adec7fd81af1bf6b9f22;hb=18f705a978c2a5fe8999023173049753a5a2f677;hp=4f4d0134cd15715d47f2ab8c0ba0bdfc3e09f035;hpb=d75560981e966713bc9bee1d33032dcfa2ff906f;p=i3%2Fi3 diff --git a/i3-migrate-config-to-v4 b/i3-migrate-config-to-v4 index 4f4d0134..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;