Extends move command for floating windows

This commit is contained in:
Pavel Löbl
2012-03-23 13:39:17 +01:00
committed by Michael Stapelberg
parent 2763a23cc7
commit f78f137ed0
6 changed files with 145 additions and 1 deletions

View File

@ -172,6 +172,7 @@ state RESIZE_TILING_OR:
# move [window|container] [to] scratchpad
# move workspace to [output] <str>
# move scratchpad
# move [window|container] [to] [absolute] position [ [<pixels> [px] <pixels> [px]] | center ]
state MOVE:
'window'
->
@ -187,6 +188,10 @@ state MOVE:
-> call cmd_move_scratchpad()
direction = 'left', 'right', 'up', 'down'
-> MOVE_DIRECTION
method = 'position'
-> MOVE_TO_POSITION
method = 'absolute'
-> MOVE_TO_ABSOLUTE_POSITION
state MOVE_DIRECTION:
pixels = word
@ -218,6 +223,26 @@ state MOVE_WORKSPACE_TO_OUTPUT:
output = string
-> call cmd_move_workspace_to_output($output)
state MOVE_TO_ABSOLUTE_POSITION:
'position'
-> MOVE_TO_POSITION
state MOVE_TO_POSITION:
'center'
-> call cmd_move_window_to_center($method)
coord_x = word
-> MOVE_TO_POSITION_X
state MOVE_TO_POSITION_X:
'px'
->
coord_y = word
-> MOVE_TO_POSITION_Y
state MOVE_TO_POSITION_Y:
'px', end
-> call cmd_move_window_to_position($method, $coord_x, $coord_y)
# mode <string>
state MODE:
mode = string