Allow assign to output

Implements the "assign" part of issue #2764.
This commit is contained in:
Orestis Floros
2017-09-16 20:54:44 +03:00
parent 45d1e51857
commit a35854ddf4
7 changed files with 166 additions and 4 deletions

View File

@ -141,7 +141,7 @@ state FOR_WINDOW_COMMAND:
command = string
-> call cfg_for_window($command)
# assign <criteria> [→] workspace
# assign <criteria> [→] [workspace | output] <name>
state ASSIGN:
'['
-> call cfg_criteria_init(ASSIGN_WORKSPACE); CRITERIA
@ -149,6 +149,8 @@ state ASSIGN:
state ASSIGN_WORKSPACE:
'→'
->
'output'
-> ASSIGN_OUTPUT
'workspace'
->
'number'
@ -156,6 +158,10 @@ state ASSIGN_WORKSPACE:
workspace = string
-> call cfg_assign($workspace, 0)
state ASSIGN_OUTPUT:
output = string
-> call cfg_assign_output($output)
state ASSIGN_WORKSPACE_NUMBER:
number = string
-> call cfg_assign($number, 1)