Trait leftwm_core::config::Config [−][src]
pub trait Config {
Show 23 methods
fn mapped_bindings(&self) -> Vec<Keybind>;
fn create_list_of_tags(&self) -> Vec<String>;
fn workspaces(&self) -> Option<&[Workspace]>;
fn focus_behaviour(&self) -> FocusBehaviour;
fn mousekey(&self) -> &str;
fn disable_current_tag_swap(&self) -> bool;
fn create_list_of_scratchpads(&self) -> Vec<ScratchPad>;
fn layouts(&self) -> Vec<Layout>;
fn layout_mode(&self) -> LayoutMode;
fn focus_new_windows(&self) -> bool;
fn command_handler<SERVER>(
command: &str,
manager: &mut Manager<Self, SERVER>
) -> bool
where
Self: Sized,
SERVER: DisplayServer;
fn border_width(&self) -> i32;
fn margin(&self) -> Margins;
fn workspace_margin(&self) -> Option<Margins>;
fn gutter(&self) -> Option<Vec<Gutter>>;
fn default_border_color(&self) -> &str;
fn floating_border_color(&self) -> &str;
fn focused_border_color(&self) -> &str;
fn on_new_window_cmd(&self) -> Option<String>;
fn get_list_of_gutters(&self) -> Vec<Gutter>;
fn max_window_width(&self) -> Option<Size>;
fn save_state<SERVER>(manager: &Manager<Self, SERVER>)
where
Self: Sized,
SERVER: DisplayServer;
fn load_state<SERVER>(manager: &mut Manager<Self, SERVER>)
where
Self: Sized,
SERVER: DisplayServer;
}Required methods
fn mapped_bindings(&self) -> Vec<Keybind>
fn mapped_bindings(&self) -> Vec<Keybind>
Returns a collection of bindings with the mod key mapped.
fn focus_behaviour(&self) -> FocusBehaviour
fn disable_current_tag_swap(&self) -> bool
fn create_list_of_scratchpads(&self) -> Vec<ScratchPad>
fn layout_mode(&self) -> LayoutMode
fn focus_new_windows(&self) -> bool
fn command_handler<SERVER>(
command: &str,
manager: &mut Manager<Self, SERVER>
) -> bool where
Self: Sized,
SERVER: DisplayServer,
fn border_width(&self) -> i32
fn workspace_margin(&self) -> Option<Margins>
fn default_border_color(&self) -> &str
fn floating_border_color(&self) -> &str
fn focused_border_color(&self) -> &str
fn on_new_window_cmd(&self) -> Option<String>
fn get_list_of_gutters(&self) -> Vec<Gutter>
fn max_window_width(&self) -> Option<Size>
fn save_state<SERVER>(manager: &Manager<Self, SERVER>) where
Self: Sized,
SERVER: DisplayServer,
fn save_state<SERVER>(manager: &Manager<Self, SERVER>) where
Self: Sized,
SERVER: DisplayServer,
Write current state to a file. It will be used to restore the state after soft reload.
Errors
Will return error if unable to create state_file or
if unable to serialize the text.
May be caused by inadequate permissions, not enough
space on drive, or other typical filesystem issues.
fn load_state<SERVER>(manager: &mut Manager<Self, SERVER>) where
Self: Sized,
SERVER: DisplayServer,
fn load_state<SERVER>(manager: &mut Manager<Self, SERVER>) where
Self: Sized,
SERVER: DisplayServer,
Load saved state if it exists.