]> git.sur5r.net Git - i3/i3/blobdiff - i3-migrate-config-to-v4
Merge branch 'master' into next
[i3/i3] / i3-migrate-config-to-v4
index 5f20cba1a0de97ec458a059242ef3bb41670347f..0a8db2deb275c9894d065692a7be3e4965214798 100755 (executable)
@@ -289,6 +289,11 @@ sub convert_command {
         my ($direction, $sign, $px) = ($command =~ /^resize (left|right|top|bottom) ([+-])([0-9]+)/);
         my $cmd = 'resize ';
         $cmd .= ($sign eq '+' ? 'grow' : 'shrink') . ' ';
+        if ($direction eq 'top') {
+            $direction = 'up';
+        } elsif ($direction eq 'bottom') {
+            $direction = 'down';
+        }
         $cmd .= "$direction ";
         $cmd .= "$px px";
         print qq|$statement $key $cmd\n|;