aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/sway-bar.5.scd3
-rw-r--r--sway/sway-input.5.scd4
-rw-r--r--sway/sway.5.scd46
3 files changed, 29 insertions, 24 deletions
diff --git a/sway/sway-bar.5.scd b/sway/sway-bar.5.scd
index a61e2829..00b9386e 100644
--- a/sway/sway-bar.5.scd
+++ b/sway/sway-bar.5.scd
@@ -6,8 +6,7 @@ sway-bar - bar configuration file and commands
6 6
7# DESCRIPTION 7# DESCRIPTION
8 8
9Sway allows configuring swaybar in the sway configuration file. Swaybar 9Sway allows configuring swaybar in the sway configuration file.
10commands must be used inside a _bar { }_ block in the config file.
11 10
12# COMMANDS 11# COMMANDS
13 12
diff --git a/sway/sway-input.5.scd b/sway/sway-input.5.scd
index 707c36af..5736d70a 100644
--- a/sway/sway-input.5.scd
+++ b/sway/sway-input.5.scd
@@ -7,7 +7,6 @@ sway-input - input configuration file and commands
7# DESCRIPTION 7# DESCRIPTION
8 8
9Sway allows for configuration of devices within the sway configuration file. 9Sway allows for configuration of devices within the sway configuration file.
10sway-input commands must be used inside an _input { }_ block in the config.
11To obtain a list of available device identifiers, run *swaymsg -t get\_inputs*. 10To obtain a list of available device identifiers, run *swaymsg -t get\_inputs*.
12 11
13# INPUT COMMANDS 12# INPUT COMMANDS
@@ -116,8 +115,7 @@ The following commands may only be used in the configuration file.
116 115
117## SEAT CONFIGURATION 116## SEAT CONFIGURATION
118 117
119Configure options for multiseat mode. sway-seat commands must be used inside a 118Configure options for multiseat mode.
120_seat { }_ block in the config.
121 119
122A *seat* is a collection of input devices that act independently of each other. 120A *seat* is a collection of input devices that act independently of each other.
123Seats are identified by name and the default seat is _seat0_ if no seats are 121Seats are identified by name and the default seat is _seat0_ if no seats are
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