pub enum ConfigCommand {
Bar(Option<String>, Vec<String>),
DefaultOrientation(DefaultOrientation),
Include(String),
SwaybgCommand(String),
SwaynagCommand(String),
WorkspaceLayout(WorkspaceLayout),
Xwayland(Xwayland),
}Expand description
The following commands may only be used in the configuration file.
Variants§
Bar(Option<String>, Vec<String>)
For details on bar subcommands, see sway-bar(5).
DefaultOrientation(DefaultOrientation)
Sets the default container layout for tiled containers.
Include(String)
Includes another file from path. path can be either a full path or a path relative to the parent config, and expands shell syntax (see wordexp(3) for details). The same include file can only be included once; subsequent attempts will be ignored.
SwaybgCommand(String)
Executes custom background command. Default is swaybg. Refer to swayoutput(5) for more information.
It can be disabled by setting the command to a single dash: swaybg_command -
SwaynagCommand(String)
Executes custom command for swaynag. Default is swaynag. Additional arguments may be appended to the end. This should only be used to either direct sway to call swaynag from a custom path or to provide additional arguments. This should be placed at the top of the config for the best results.
It can be disabled by setting the command to a single dash: swaynag_command -
WorkspaceLayout(WorkspaceLayout)
Specifies the initial layout for new containers in an empty workspace.
Xwayland(Xwayland)
Enables or disables Xwayland support, which allows X11 applications to be used. enable will lazily load Xwayland so Xwayland will not be launched until the first client attempts to connect. In some cases, such as slower machines, it may be desirable to have Xwayland started immediately by using force instead of enable.