Enum gabelstaplerwm::wm::config::Mode [] [src]

pub enum Mode {
    Normal,
    Setup,
}

All keyboard modes used by gabelstaplerwm-

A mode represents the active set of keybindings and/or their functionality. This works like the vim editor: different keybindings get triggered in different modes, even if the same keys are pressed.

Limitations

Be aware that currently, gabelstaplerwm grabs the key combinations globally during setup. This allows for overlapping keybindings in different modes, but passing a key combination once grabbed to apps depending on mode is currently impossible. This can be lifted in the future, if we decide to regrab on every mode change, but that's a rather expensive operation, given the currrent, HashMap-based design.

Variants

normal mode doing normal stuff

setup mode to edit tagsets (unused in default config)

Trait Implementations

impl Clone for Mode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Mode
[src]

impl Debug for Mode
[src]

Formats the value using the given formatter.

impl PartialEq for Mode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Mode
[src]

impl Hash for Mode
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Default for Mode
[src]

Returns the "default value" for a type. Read more