Enum swayr::cmds::SwayrCommand
source · [−]pub enum SwayrCommand {
Show 33 variants
Nop,
SwitchToUrgentOrLRUWindow,
SwitchToAppOrUrgentOrLRUWindow {
name: String,
},
SwitchToMarkOrUrgentOrLRUWindow {
con_mark: String,
},
SwitchWindow,
SwitchWorkspace,
SwitchOutput,
SwitchWorkspaceOrWindow,
SwitchWorkspaceContainerOrWindow,
SwitchTo,
QuitWindow {
kill: bool,
},
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
Nop
No-operation. Interrupts any in-progress prev/next sequence but has no other effect
SwitchToUrgentOrLRUWindow
Switch to next urgent window (if any) or to last recently used window.
SwitchToAppOrUrgentOrLRUWindow
Fields
name: String
Switch to the given app (given by app_id or window class) if that’s not focused already. If it is, switch to the next urgent window (if any) or to last recently used window.
For example, you can provide “firefox” as argument to this command to have a convenient firefox <-> last-recently-used window toggle.
SwitchToMarkOrUrgentOrLRUWindow
Fields
con_mark: String
Switch to the window with the given mark if that’s not focused already. If it is, switch to the next urgent window (if any) or to last recently used window.
For example, you can assign a “browser” mark to your browser window
(using a standard sway for_window
rule). Then you can provide
“browser” as argument to this command to have a convenient browser <->
last-recently-used window toggle.
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
Fields
kill: bool
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
sourceimpl CommandFactory for SwayrCommand
impl CommandFactory for SwayrCommand
sourcefn into_app<'b>() -> Command<'b>
fn into_app<'b>() -> Command<'b>
Replaced with `CommandFactory::command
Deprecated, replaced with CommandFactory::command
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Replaced with `CommandFactory::command_for_update
Deprecated, replaced with CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl Debug for SwayrCommand
impl Debug for SwayrCommand
sourceimpl<'de> Deserialize<'de> for SwayrCommand
impl<'de> Deserialize<'de> for SwayrCommand
sourcefn 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
sourceimpl DisplayFormat for SwayrCommand
impl DisplayFormat for SwayrCommand
fn format_for_display(&self, _: &Config) -> String
fn get_indent_level(&self) -> usize
sourceimpl FromArgMatches for SwayrCommand
impl FromArgMatches for SwayrCommand
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
sourcefn 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
.
sourceimpl Parser for SwayrCommand
impl Parser for SwayrCommand
sourcefn 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
sourcefn 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.
sourcefn 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
sourcefn 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.
sourceimpl Serialize for SwayrCommand
impl Serialize for SwayrCommand
sourceimpl Subcommand for SwayrCommand
impl Subcommand for SwayrCommand
sourcefn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
sourcefn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
sourcefn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether Self
can parse a specific subcommand
Auto Trait Implementations
impl RefUnwindSafe for SwayrCommand
impl Send for SwayrCommand
impl Sync for SwayrCommand
impl Unpin for SwayrCommand
impl UnwindSafe for SwayrCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more