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
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|;