'exit' -> call cmd_exit()
'restart' -> call cmd_restart()
'reload' -> call cmd_reload()
+ 'shmlog' -> SHMLOG
+ 'debuglog' -> DEBUGLOG
'border' -> BORDER
'layout' -> LAYOUT
'append_layout' -> APPEND_LAYOUT
'split' -> SPLIT
'floating' -> FLOATING
'mark' -> MARK
+ 'unmark' -> UNMARK
'resize' -> RESIZE
'rename' -> RENAME
'nop' -> NOP
'scratchpad' -> SCRATCHPAD
'mode' -> MODE
+ 'bar' -> BAR
state CRITERIA:
ctype = 'class' -> CRITERION
command = string
-> call cmd_exec($nosn, $command)
+# shmlog <size>|toggle|on|off
+state SHMLOG:
+ # argument may be a number
+ argument = string
+ -> call cmd_shmlog($argument)
+
+# debuglog toggle|on|off
+state DEBUGLOG:
+ argument = 'toggle', 'on', 'off'
+ -> call cmd_debuglog($argument)
+
# border normal|none|1pixel|toggle|1pixel
state BORDER:
border_style = 'normal', 'pixel'
mark = string
-> call cmd_mark($mark)
+# unmark [mark]
+state UNMARK:
+ end
+ -> call cmd_unmark($mark)
+ mark = string
+ -> call cmd_unmark($mark)
+
# resize
state RESIZE:
way = 'grow', 'shrink'
-> call cmd_resize($way, $direction, $resize_px, "10")
state RESIZE_TILING_OR:
- 'ppt'
- ->
resize_ppt = word
- ->
- end
+ -> RESIZE_TILING_FINAL
+
+state RESIZE_TILING_FINAL:
+ 'ppt', end
-> call cmd_resize($way, $direction, $resize_px, $resize_ppt)
# rename workspace <name> to <name>
-> call cmd_rename_workspace($old_name, $new_name)
# move <direction> [<pixels> [px]]
-# move [window|container] [to] workspace [<str>|next|prev|current]
+# move [window|container] [to] workspace [<str>|next|prev|next_on_output|prev_on_output|current]
# move [window|container] [to] output <str>
# move [window|container] [to] scratchpad
# move workspace to [output] <str>
-> call cmd_move_direction($direction, $pixels)
state MOVE_WORKSPACE:
- 'to'
+ 'to '
-> MOVE_WORKSPACE_TO_OUTPUT
- workspace = 'next', 'prev', 'next_on_output', 'prev_on_output', 'current'
+ workspace = 'next_on_output', 'prev_on_output', 'next', 'prev', 'current'
-> call cmd_move_con_to_workspace($workspace)
'back_and_forth'
-> call cmd_move_con_to_workspace_back_and_forth()
state SCRATCHPAD:
'show'
-> call cmd_scratchpad_show()
+
+# bar (hidden_state hide|show|toggle)|(mode dock|hide|invisible|toggle) [<bar_id>]
+state BAR:
+ bar_type = 'hidden_state'
+ -> BAR_HIDDEN_STATE
+ bar_type = 'mode'
+ -> BAR_MODE
+
+state BAR_HIDDEN_STATE:
+ bar_value = 'hide', 'show', 'toggle'
+ -> BAR_W_ID
+
+state BAR_MODE:
+ bar_value = 'dock', 'hide', 'invisible', 'toggle'
+ -> BAR_W_ID
+
+state BAR_W_ID:
+ bar_id = word
+ ->
+ end
+ -> call cmd_bar($bar_type, $bar_value, $bar_id)