Support "resize set W H"

This commit is contained in:
rr-
2015-09-05 08:31:45 +02:00
parent ee2983c791
commit 23d16e1332
8 changed files with 178 additions and 1 deletions

View File

@ -211,6 +211,8 @@ state UNMARK:
state RESIZE:
way = 'grow', 'shrink'
-> RESIZE_DIRECTION
set = 'set'
-> RESIZE_SET
state RESIZE_DIRECTION:
direction = 'up', 'down', 'left', 'right', 'width', 'height'
@ -238,6 +240,20 @@ state RESIZE_TILING_FINAL:
'ppt', end
-> call cmd_resize($way, $direction, $resize_px, $resize_ppt)
state RESIZE_SET:
width = word
-> RESIZE_WIDTH
state RESIZE_WIDTH:
'px'
->
height = word
-> RESIZE_HEIGHT
state RESIZE_HEIGHT:
'px', end
-> call cmd_size($width, $height)
# rename workspace <name> to <name>
# rename workspace to <name>
state RENAME: