From: Peter Bui Date: Mon, 8 Aug 2011 20:18:55 +0000 (-0400) Subject: Resize uses up and down, not bottom and top X-Git-Tag: 4.0.2~47^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3316d8b8badd1d94dff88fae1649e2f83674c02e;p=i3%2Fi3 Resize uses up and down, not bottom and top - Fix userguide resize example - Update migration script --- diff --git a/docs/userguide b/docs/userguide index 4a11cb1b..f4dd8cb1 100644 --- a/docs/userguide +++ b/docs/userguide @@ -789,11 +789,11 @@ mode "resize" { bindsym j resize shrink left bindsym Shift+j resize grow left - bindsym k resize grow bottom - bindsym Shift+k resize shrink bottom + bindsym k resize grow up + bindsym Shift+k resize shrink up - bindsym l resize shrink top - bindsym Shift+l resize grow top + bindsym l resize shrink down + bindsym Shift+l resize grow down bindsym semicolon resize grow right bindsym Shift+semicolon resize shrink right diff --git a/i3-migrate-config-to-v4 b/i3-migrate-config-to-v4 index 5f20cba1..65d6bdce 100755 --- a/i3-migrate-config-to-v4 +++ b/i3-migrate-config-to-v4 @@ -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 = 'down'; + } elsif ($direction eq 'bottom') { + $direction = 'up'; + } $cmd .= "$direction "; $cmd .= "$px px"; print qq|$statement $key $cmd\n|;