aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway.5.scd
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-09-28 13:24:49 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-09-28 13:30:54 -0400
commita9d9944e761eedf06453b1007998e175d416aa05 (patch)
tree7f936e3355925a0ac12a4514c6b7179595c0ba39 /sway/sway.5.scd
parentsway.5: update set command information (diff)
downloadsway-a9d9944e761eedf06453b1007998e175d416aa05.tar.gz
sway-a9d9944e761eedf06453b1007998e175d416aa05.tar.zst
sway-a9d9944e761eedf06453b1007998e175d416aa05.zip
sway{,bar,input}.5: changes for generic blocks
Diffstat (limited to 'sway/sway.5.scd')
-rw-r--r--sway/sway.5.scd46
1 files changed, 27 insertions, 19 deletions
diff --git a/sway/sway.5.scd b/sway/sway.5.scd
index 5ed20609..1526eee3 100644
--- a/sway/sway.5.scd
+++ b/sway/sway.5.scd
@@ -19,6 +19,24 @@ bindsym Shift+XF86AudioRaiseVolume exec \\
19 pactl set-sink-volume @DEFAULT_SINK@ -1% 19 pactl set-sink-volume @DEFAULT_SINK@ -1%
20``` 20```
21 21
22Commands can also be given as a block in the form *command { <subcommands...>
23}*. Anything before the opening *{* will be prepended to the lines inside the
24block. For example:
25
26```
27output eDP-1 {
28 background ~/wallpaper.png
29 resolution 1920x1080
30}
31```
32
33is identical to
34
35```
36output eDP-1 background ~/wallpaper.png
37output eDP-1 resolution 1920x1080
38```
39
22These commands can be executed in your config file, via *swaymsg*(1), or via 40These commands can be executed in your config file, via *swaymsg*(1), or via
23the bindsym command. 41the bindsym command.
24 42
@@ -37,10 +55,8 @@ which you may only select one. *[...]* is used for optional arguments, and
37 55
38The following commands may only be used in the configuration file. 56The following commands may only be used in the configuration file.
39 57
40*bar {* <commands...> *}* 58*bar* [<bar-id>] <bar-subcommands...>
41 _commands..._ after *{* will be interpreted as bar commands. For 59 For details on bar subcommands, see *sway-bar*(5).
42 details, see *sway-bar*(5). A newline is required between *{* and the
43 first command, and *}* must be alone on a line.
44 60
45*default\_orientation* horizontal|vertical|auto 61*default\_orientation* horizontal|vertical|auto
46 Sets the default container layout for tiled containers. 62 Sets the default container layout for tiled containers.
@@ -420,20 +436,15 @@ The default colors are:
420*hide\_edge\_borders* none|vertical|horizontal|both|smart 436*hide\_edge\_borders* none|vertical|horizontal|both|smart
421 Hides window borders adjacent to the screen edges. Default is _none_. 437 Hides window borders adjacent to the screen edges. Default is _none_.
422 438
423*input* <input\_device> *{* <commands...> *}* 439*input* <input\_device> <input-subcommands...>
424 _commands..._ after *{* will be interpreted as input commands applying to 440 For details on input subcommands, see *sway-input*(5).
425 the specified input device. For details, see *sway-input*(5). A newline is
426 required between *{* and the first command, and *}* must be alone on a
427 line.
428 441
429 \* may be used in lieu of a specific device name to configure all input 442 \* may be used in lieu of a specific device name to configure all input
430 devices. A list of input device names may be obtained via *swaymsg -t 443 devices. A list of input device names may be obtained via *swaymsg -t
431 get\_inputs*. 444 get\_inputs*.
432 445
433*seat* <seat> *{* <commands...> *}* 446*seat* <seat> <seat-subcommands...>
434 _commands..._ after *{* will be interpreted as seat commands applying to 447 For details on seat subcommands, see *sway-input*(5).
435 the specified seat. For details, see *sway-input*(5). A newline is required
436 between *{* and the first command, and *}* must be alone on a line.
437 448
438*seat* <seat> cursor move|set <x> <y> 449*seat* <seat> cursor move|set <x> <y>
439 Move specified seat's cursor relative to current position or wrap to 450 Move specified seat's cursor relative to current position or wrap to
@@ -461,10 +472,8 @@ The default colors are:
461*mode* <mode> 472*mode* <mode>
462 Switches to the specified mode. The default mode _default_. 473 Switches to the specified mode. The default mode _default_.
463 474
464*mode* [--pango\_markup] <mode> *{* <commands...> *}* 475*mode* [--pango\_markup] <mode> <mode-subcommands...>
465 _commands..._ after *{* will be added to the specified mode. A newline is 476 The only two valid _mode-subcommands..._ are *bindsym* and *bindcode*.
466 required between *{* and the first command, and *}* must be alone on a
467 line. Only *bindsym* and *bindcode* commands are permitted in mode blocks.
468 If _--pango\_markup_ is given, then _mode_ will be interpreted as pango 477 If _--pango\_markup_ is given, then _mode_ will be interpreted as pango
469 markup. 478 markup.
470 479
@@ -529,8 +538,7 @@ You may combine output commands into one, like so:
529 output HDMI-A-1 mode 1920x1080 pos 1920,0 bg ~/wallpaper.png stretch 538 output HDMI-A-1 mode 1920x1080 pos 1920,0 bg ~/wallpaper.png stretch
530 539
531You can get a list of output names with *swaymsg -t get\_outputs*. You may also 540You can get a list of output names with *swaymsg -t get\_outputs*. You may also
532match any output by using the output name "\*". Be sure to add this output 541match any output by using the output name "\*".
533config after the others, or it will be matched instead of the others.
534 542
535*set* $<name> <value> 543*set* $<name> <value>
536 Sets variable $_name_ to _value_. You can use the new variable in the 544 Sets variable $_name_ to _value_. You can use the new variable in the