Enum swayr::cmds::SwayrCommand [−][src]
pub enum SwayrCommand {
Show 30 variants
SwitchToUrgentOrLRUWindow,
SwitchWindow,
SwitchWorkspace,
SwitchOutput,
SwitchWorkspaceOrWindow,
SwitchWorkspaceContainerOrWindow,
SwitchTo,
QuitWindow,
QuitWorkspaceOrWindow,
QuitWorkspaceContainerOrWindow,
NextWindow {
windows: ConsiderWindows,
},
PrevWindow {
windows: ConsiderWindows,
},
NextTiledWindow {
windows: ConsiderWindows,
},
PrevTiledWindow {
windows: ConsiderWindows,
},
NextTabbedOrStackedWindow {
windows: ConsiderWindows,
},
PrevTabbedOrStackedWindow {
windows: ConsiderWindows,
},
NextFloatingWindow {
windows: ConsiderWindows,
},
PrevFloatingWindow {
windows: ConsiderWindows,
},
NextWindowOfSameLayout {
windows: ConsiderWindows,
},
PrevWindowOfSameLayout {
windows: ConsiderWindows,
},
MoveFocusedToWorkspace,
MoveFocusedTo,
SwapFocusedWith,
ToggleTabShuffleTileWorkspace {
floating: ConsiderFloating,
},
TileWorkspace {
floating: ConsiderFloating,
},
TabWorkspace {
floating: ConsiderFloating,
},
ShuffleTileWorkspace {
floating: ConsiderFloating,
},
ExecuteSwaymsgCommand,
ExecuteSwayrCommand,
ConfigureOutputs,
}
Variants
SwitchToUrgentOrLRUWindow
Switch to next urgent window (if any) or to last recently used window.
SwitchWindow
Focus the selected window.
SwitchWorkspace
Switch to the selected workspace.
SwitchOutput
Switch to the selected workspace.
SwitchWorkspaceOrWindow
Switch to the selected workspace or focus the selected window.
SwitchWorkspaceContainerOrWindow
Switch to the selected workspace or focus the selected container, or window.
SwitchTo
Switch to the selected output or workspace or focus the selected container, or window.
QuitWindow
Quit the selected window.
QuitWorkspaceOrWindow
Quit all windows of selected workspace or the selected window.
QuitWorkspaceContainerOrWindow
Quit all windows of selected workspace, or container or the selected window.
NextWindow
Fields
windows: ConsiderWindows
Focus the next window in LRU order.
PrevWindow
Fields
windows: ConsiderWindows
Focus the previous window in LRU order.
NextTiledWindow
Fields
windows: ConsiderWindows
Focus the next window of a tiled container.
PrevTiledWindow
Fields
windows: ConsiderWindows
Focus the previous window of a tiled container.
NextTabbedOrStackedWindow
Fields
windows: ConsiderWindows
Focus the next window of a tabbed or stacked container.
PrevTabbedOrStackedWindow
Fields
windows: ConsiderWindows
Focus the previous window of a tabbed or stacked container.
NextFloatingWindow
Fields
windows: ConsiderWindows
Focus the next floating window.
PrevFloatingWindow
Fields
windows: ConsiderWindows
Focus the previous floating window.
NextWindowOfSameLayout
Fields
windows: ConsiderWindows
Focus the next window having the same layout as the current one.
PrevWindowOfSameLayout
Fields
windows: ConsiderWindows
Focus the previous window having the same layout as the current one.
MoveFocusedToWorkspace
Move the currently focused window or container to the selected workspace.
MoveFocusedTo
Move the currently focused window or container to the selected output, workspace, container or window.
SwapFocusedWith
Swap the currently focused window or container with the selected container or window.
ToggleTabShuffleTileWorkspace
Fields
floating: ConsiderFloating
Tab or shuffle-and-tile the windows on the current workspace, including or excluding floating windows.
TileWorkspace
Fields
floating: ConsiderFloating
Tiles the windows on the current workspace, including or excluding floating windows.
TabWorkspace
Fields
floating: ConsiderFloating
Tabs the windows on the current workspace, including or excluding floating windows.
ShuffleTileWorkspace
Fields
floating: ConsiderFloating
Shuffles and tiles the windows on the current workspace, including or excluding floating windows.
ExecuteSwaymsgCommand
Select and execute a swaymsg command.
ExecuteSwayrCommand
Select and execute a swayr command.
ConfigureOutputs
Configure outputs.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
fn update_from_arg_matches<'b>(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches<'b>(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches
to self
.
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
StructOpt::clap
is replaced with IntoApp::into_app
(derived as part of Parser
)
Deprecated, StructOpt::clap
replaced with IntoApp::into_app
(derive as part of
Parser
) Read more
StructOpt::clap
is replaced with IntoApp::into_app
(derived as part of Parser
)
Deprecated, StructOpt::from_clap
replaced with FromArgMatches::from_arg_matches
(derive as part of
Parser
) Read more
StructOpt::from_args
is replaced with Parser::parse
(note the change in derives)
Deprecated, StructOpt::from_args
replaced with Parser::parse
(note the change in derives)
StructOpt::from_args_safe
is replaced with Parser::try_parse
(note the change in derives)
Deprecated, StructOpt::from_args_safe
replaced with Parser::try_parse
(note the change in derives)
StructOpt::from_iter
is replaced with Parser::parse_from
(note the change in derives)
Deprecated, StructOpt::from_iter
replaced with Parser::parse_from
(note the change in derives)
fn from_iter_safe<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn from_iter_safe<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
StructOpt::from_iter_safe
is replaced with Parser::try_parse_from
(note the change in derives)
Deprecated, StructOpt::from_iter_safe
replaced with Parser::try_parse_from
(note the
change in derives) Read more
Test whether Self
can parse a specific subcommand