ConfigCommand

Enum ConfigCommand 

Source
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.

Trait Implementations§

Source§

impl Display for ConfigCommand

Source§

fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.