pub enum BindingAction {
Show 28 variants CenterClient, ChangeMainRatio(f32), CloseClient, CycleClient(i32), CycleLayout, CycleMonitor(i32), CycleWorkspace(i32), Execute(String), Exit, FocusMain, IncGaps(i32), IncNMain(i32), MouseMove, MousePlace, MouseResize, MouseResizeCentered, MoveMain, MoveMonitor(i32), MoveWorkspace(u32), PreviousWorkspace, Restart, SetLayout(LayoutType), SetStackMode(StackMode), SetStackPosition(StackPosition), StackMove(i32), SwitchWorkspace(u32), ToggleFloating, ToggleFullscreen,
}
Expand description

Actions for key bindings, button bindings and window rules.

Note that the configuration files use kebab-case convention for enum variants.

Variants§

§

CenterClient

Center the current client on the screen

§

ChangeMainRatio(f32)

Change the ration between main and stack area

§

CloseClient

Close the client

§

CycleClient(i32)

Cycle through clients

§

CycleLayout

Switch through the different layouts

§

CycleMonitor(i32)

Switch monitor (relative to the current monitor)

§

CycleWorkspace(i32)

Cycle through workspaces

§

Execute(String)

Execute a command in the system shell

§

Exit

Exit the window manager

§

FocusMain

Switch between the last focused window of the main and stack area

§

IncGaps(i32)

Increase or decrease the gap width of the current workspace

§

IncNMain(i32)

Increase or decrease the number of clients in the main area

§

MouseMove

Move the client with the mouse

§

MousePlace

Place a window with the mouse

§

MouseResize

Resize a window with the mouse

§

MouseResizeCentered

Resize a window around its center

§

MoveMain

Move client to/from the main area

§

MoveMonitor(i32)

Move the client to a different monitor (relative to the current monitor)

§

MoveWorkspace(u32)

Move the client to a different workspace

§

PreviousWorkspace

Switch to the previously focused workspace

§

Restart

Restart the window manager

§

SetLayout(LayoutType)

Set the layout

§

SetStackMode(StackMode)

Set the stack mode for the dynamic layout

§

SetStackPosition(StackPosition)

Set the stack position for the dynamic layout

§

StackMove(i32)

Move the client up or down the stack

§

SwitchWorkspace(u32)

Switch to a different workspace

§

ToggleFloating

Toggle floating state on the window

§

ToggleFullscreen

Toggle fullscreen state on the window

Implementations§

source§

impl BindingAction

source

pub fn execute<B: Backend<Attributes>>( &self, wm: &mut MarsWM<B>, backend: &mut B, client_option: Option<Rc<RefCell<B::Client>>> )

Trait Implementations§

source§

impl Clone for BindingAction

source§

fn clone(&self) -> BindingAction

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BindingAction

source§

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

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for BindingAction

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq<BindingAction> for BindingAction

source§

fn eq(&self, other: &BindingAction) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for BindingAction

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for BindingAction

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,