mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #2724 from RedSoxFan/update-man-pages
Update man pages - dynamic vars and generic blocks
This commit is contained in:
		
						commit
						dc01e884f7
					
				
					 3 changed files with 37 additions and 28 deletions
				
			
		| 
						 | 
					@ -6,8 +6,7 @@ sway-bar - bar configuration file and commands
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# DESCRIPTION
 | 
					# DESCRIPTION
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Sway allows configuring swaybar in the sway configuration file. Swaybar
 | 
					Sway allows configuring swaybar in the sway configuration file.
 | 
				
			||||||
commands must be used inside a _bar { }_ block in the config file.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# COMMANDS
 | 
					# COMMANDS
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,7 +7,6 @@ sway-input - input configuration file and commands
 | 
				
			||||||
# DESCRIPTION
 | 
					# DESCRIPTION
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Sway allows for configuration of devices within the sway configuration file.
 | 
					Sway allows for configuration of devices within the sway configuration file.
 | 
				
			||||||
sway-input commands must be used inside an _input { }_ block in the config.
 | 
					 | 
				
			||||||
To obtain a list of available device identifiers, run *swaymsg -t get\_inputs*.
 | 
					To obtain a list of available device identifiers, run *swaymsg -t get\_inputs*.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# INPUT COMMANDS
 | 
					# INPUT COMMANDS
 | 
				
			||||||
| 
						 | 
					@ -116,8 +115,7 @@ The following commands may only be used in the configuration file.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## SEAT CONFIGURATION
 | 
					## SEAT CONFIGURATION
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Configure options for multiseat mode. sway-seat commands must be used inside a
 | 
					Configure options for multiseat mode.
 | 
				
			||||||
_seat { }_ block in the config.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
A *seat* is a collection of input devices that act independently of each other.
 | 
					A *seat* is a collection of input devices that act independently of each other.
 | 
				
			||||||
Seats are identified by name and the default seat is _seat0_ if no seats are
 | 
					Seats are identified by name and the default seat is _seat0_ if no seats are
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -19,6 +19,24 @@ bindsym Shift+XF86AudioRaiseVolume exec \\
 | 
				
			||||||
	pactl set-sink-volume @DEFAULT_SINK@ -1%
 | 
						pactl set-sink-volume @DEFAULT_SINK@ -1%
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Commands can also be given as a block in the form *command { <subcommands...>
 | 
				
			||||||
 | 
					}*. Anything before the opening *{* will be prepended to the lines inside the
 | 
				
			||||||
 | 
					block. For example:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					output eDP-1 {
 | 
				
			||||||
 | 
						background ~/wallpaper.png
 | 
				
			||||||
 | 
						resolution 1920x1080
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					is identical to
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					output eDP-1 background ~/wallpaper.png
 | 
				
			||||||
 | 
					output eDP-1 resolution 1920x1080
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
These commands can be executed in your config file, via *swaymsg*(1), or via
 | 
					These commands can be executed in your config file, via *swaymsg*(1), or via
 | 
				
			||||||
the bindsym command.
 | 
					the bindsym command.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -37,10 +55,8 @@ which you may only select one. *[...]* is used for optional arguments, and
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The following commands may only be used in the configuration file.
 | 
					The following commands may only be used in the configuration file.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
*bar {* <commands...> *}*
 | 
					*bar* [<bar-id>] <bar-subcommands...>
 | 
				
			||||||
	_commands..._ after *{* will be interpreted as bar commands. For
 | 
						For details on bar subcommands, see *sway-bar*(5).
 | 
				
			||||||
	details, see *sway-bar*(5). A newline is required between *{* and the
 | 
					 | 
				
			||||||
	first command, and *}* must be alone on a line.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
*default\_orientation* horizontal|vertical|auto
 | 
					*default\_orientation* horizontal|vertical|auto
 | 
				
			||||||
	Sets the default container layout for tiled containers.
 | 
						Sets the default container layout for tiled containers.
 | 
				
			||||||
| 
						 | 
					@ -51,10 +67,6 @@ The following commands may only be used in the configuration file.
 | 
				
			||||||
	*wordexp*(3) for details). The same include file can only be included once;
 | 
						*wordexp*(3) for details). The same include file can only be included once;
 | 
				
			||||||
	subsequent attempts will be ignored.
 | 
						subsequent attempts will be ignored.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
*set* $<name> <value>
 | 
					 | 
				
			||||||
	Sets variable $_name_ to _value_. You can use the new variable in the
 | 
					 | 
				
			||||||
	arguments of future commands.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
*swaybg\_command* <command>
 | 
					*swaybg\_command* <command>
 | 
				
			||||||
	Executes custom background _command_. Default is _swaybg_. Refer to
 | 
						Executes custom background _command_. Default is _swaybg_. Refer to
 | 
				
			||||||
	*output* below for more information.
 | 
						*output* below for more information.
 | 
				
			||||||
| 
						 | 
					@ -424,20 +436,15 @@ The default colors are:
 | 
				
			||||||
*hide\_edge\_borders* none|vertical|horizontal|both|smart
 | 
					*hide\_edge\_borders* none|vertical|horizontal|both|smart
 | 
				
			||||||
	Hides window borders adjacent to the screen edges. Default is _none_.
 | 
						Hides window borders adjacent to the screen edges. Default is _none_.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
*input* <input\_device> *{* <commands...> *}*
 | 
					*input* <input\_device> <input-subcommands...>
 | 
				
			||||||
	_commands..._ after *{* will be interpreted as input commands applying to
 | 
						For details on input subcommands, see *sway-input*(5).
 | 
				
			||||||
	the specified input device. For details, see *sway-input*(5). A newline is
 | 
					 | 
				
			||||||
	required between *{* and the first command, and *}* must be alone on a
 | 
					 | 
				
			||||||
	line.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	\* may be used in lieu of a specific device name to configure all input
 | 
						\* may be used in lieu of a specific device name to configure all input
 | 
				
			||||||
	devices. A list of input device names may be obtained via *swaymsg -t
 | 
						devices. A list of input device names may be obtained via *swaymsg -t
 | 
				
			||||||
	get\_inputs*.
 | 
						get\_inputs*.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
*seat* <seat> *{* <commands...> *}*
 | 
					*seat* <seat> <seat-subcommands...>
 | 
				
			||||||
	_commands..._ after *{* will be interpreted as seat commands applying to
 | 
						For details on seat subcommands, see *sway-input*(5).
 | 
				
			||||||
	the specified seat. For details, see *sway-input*(5). A newline is required
 | 
					 | 
				
			||||||
	between *{* and the first command, and *}* must be alone on a line.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
*seat* <seat> cursor move|set <x> <y>
 | 
					*seat* <seat> cursor move|set <x> <y>
 | 
				
			||||||
	Move specified seat's cursor relative to current position or wrap to
 | 
						Move specified seat's cursor relative to current position or wrap to
 | 
				
			||||||
| 
						 | 
					@ -465,10 +472,8 @@ The default colors are:
 | 
				
			||||||
*mode* <mode>
 | 
					*mode* <mode>
 | 
				
			||||||
	Switches to the specified mode. The default mode _default_.
 | 
						Switches to the specified mode. The default mode _default_.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
*mode* [--pango\_markup] <mode> *{* <commands...> *}*
 | 
					*mode* [--pango\_markup] <mode> <mode-subcommands...>
 | 
				
			||||||
	_commands..._ after *{* will be added to the specified mode. A newline is
 | 
						The only two valid _mode-subcommands..._ are *bindsym* and *bindcode*.
 | 
				
			||||||
	required between *{* and the first command, and *}* must be alone on a
 | 
					 | 
				
			||||||
	line. Only *bindsym* and *bindcode* commands are permitted in mode blocks.
 | 
					 | 
				
			||||||
	If _--pango\_markup_ is given, then _mode_ will be interpreted as pango
 | 
						If _--pango\_markup_ is given, then _mode_ will be interpreted as pango
 | 
				
			||||||
	markup.
 | 
						markup.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -533,8 +538,15 @@ You may combine output commands into one, like so:
 | 
				
			||||||
	output HDMI-A-1 mode 1920x1080 pos 1920,0 bg ~/wallpaper.png stretch
 | 
						output HDMI-A-1 mode 1920x1080 pos 1920,0 bg ~/wallpaper.png stretch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
You can get a list of output names with *swaymsg -t get\_outputs*. You may also
 | 
					You can get a list of output names with *swaymsg -t get\_outputs*. You may also
 | 
				
			||||||
match any output by using the output name "\*". Be sure to add this output
 | 
					match any output by using the output name "\*".
 | 
				
			||||||
config after the others, or it will be matched instead of the others.
 | 
					
 | 
				
			||||||
 | 
					*set* $<name> <value>
 | 
				
			||||||
 | 
						Sets variable $_name_ to _value_. You can use the new variable in the
 | 
				
			||||||
 | 
						arguments of future commands. When the variable is used, it can be escaped
 | 
				
			||||||
 | 
						with an additional $ (ie $$_name_) to have the replacement happen at run
 | 
				
			||||||
 | 
						time instead of when reading the config. However, it does not always make
 | 
				
			||||||
 | 
						sense for the variable to be replaced at run time since some arguments do
 | 
				
			||||||
 | 
						need to be known at config time.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
*show\_marks* yes|no
 | 
					*show\_marks* yes|no
 | 
				
			||||||
	If *show\_marks* is yes, marks will be displayed in the window borders.
 | 
						If *show\_marks* is yes, marks will be displayed in the window borders.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue