'floating' -> FLOATING
'mark' -> MARK
'resize' -> RESIZE
+ 'rename' -> RENAME
'nop' -> NOP
'scratchpad' -> SCRATCHPAD
'mode' -> MODE
# split v|h|vertical|horizontal
state SPLIT:
- direction = 'v', 'h', 'vertical', 'horizontal'
+ direction = 'horizontal', 'vertical', 'v', 'h'
-> call cmd_split($direction)
# floating enable|disable|toggle
end
-> call cmd_resize($way, $direction, $resize_px, $resize_ppt)
+# rename workspace <name> to <name>
+state RENAME:
+ 'workspace'
+ -> RENAME_WORKSPACE
+
+state RENAME_WORKSPACE:
+ old_name = word
+ -> RENAME_WORKSPACE_TO
+
+state RENAME_WORKSPACE_TO:
+ 'to'
+ ->
+ new_name = string
+ -> call cmd_rename_workspace($old_name, $new_name)
+
# move <direction> [<pixels> [px]]
-# move [window|container] [to] workspace <str>
+# move [window|container] [to] workspace [<str>|next|prev|current]
# move [window|container] [to] output <str>
# move [window|container] [to] scratchpad
# move workspace to [output] <str>
state MOVE_WORKSPACE:
'to'
-> MOVE_WORKSPACE_TO_OUTPUT
- workspace = 'next', 'prev', 'next_on_output', 'prev_on_output'
+ workspace = 'next', 'prev', 'next_on_output', 'prev_on_output', 'current'
-> call cmd_move_con_to_workspace($workspace)
'number'
-> MOVE_WORKSPACE_NUMBER