diff options
author | 2019-04-19 02:46:49 -0400 | |
---|---|---|
committer | 2019-04-19 08:39:57 -0600 | |
commit | 09595da0bcf84364e957235c8c50c69d11912515 (patch) | |
tree | 6be531d8a730b4cc081cf98ca605baa656103339 /include/swaynag/types.h | |
parent | hide_edge_borders.c: add missing case for --i3 (diff) | |
download | sway-09595da0bcf84364e957235c8c50c69d11912515.tar.gz sway-09595da0bcf84364e957235c8c50c69d11912515.tar.zst sway-09595da0bcf84364e957235c8c50c69d11912515.zip |
cmd_move: allow for all i3 syntax options
This modifies cmd_move to allow for the syntax options allowed by i3.
The following syntaxes are supported:
- `move left|right|up|down [<amount> [px]]`
- `move [--no-auto-back-and-forth] [window|container] [to] workspace
<name>|next|prev|next_on_output|prev_on_output|current|number <num>`
- `move [window|container] [to] output <name/id>|left|right|up|down`
- `move [window|container] [to] mark <mark>`
- `move workspace to [output] <name/id>|left|right|up|down`
- `move [window|container] [to] [absolute] position <x> [px] <y> [px]`
- `move [window|container] [to] [absolute] position center`
- `move [window|container] [to] position mouse|cursor|pointer`
This also allows retains the following syntax option that is not
supported by i3, but is supported in sway 1.0:
- `move workspace [to] output <name/id>|left|right|up|down`
The changes are:
- `window` and `container` are now optional
- `output` is now optional for `move workspace` when `to` is given
There is also stricter command checking now. If `absolute` or
`--no-auto-back-and-forth` are given for commands that do not support
them, it will be treated as invalid syntax instead of being silently
ignored.
Diffstat (limited to 'include/swaynag/types.h')
0 files changed, 0 insertions, 0 deletions