pub trait Config {
Show 35 methods // Required methods fn create_list_of_tag_labels(&self) -> Vec<String>; fn workspaces(&self) -> Option<Vec<Workspace>>; fn focus_behaviour(&self) -> FocusBehaviour; fn mousekey(&self) -> Vec<String>; fn create_list_of_scratchpads(&self) -> Vec<ScratchPad>; fn layouts(&self) -> Vec<String>; fn layout_definitions(&self) -> Vec<Layout>; fn layout_mode(&self) -> LayoutMode; fn insert_behavior(&self) -> InsertBehavior; fn single_window_border(&self) -> bool; fn focus_new_windows(&self) -> bool; fn command_handler<SERVER>( command: &str, manager: &mut Manager<Self, SERVER> ) -> bool where SERVER: DisplayServer, Self: Sized; fn always_float(&self) -> bool; fn default_width(&self) -> i32; fn default_height(&self) -> i32; 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) -> String; fn floating_border_color(&self) -> String; fn focused_border_color(&self) -> String; fn background_color(&self) -> String; fn on_new_window_cmd(&self) -> Option<String>; fn get_list_of_gutters(&self) -> Vec<Gutter>; fn auto_derive_workspaces(&self) -> bool; fn disable_tile_drag(&self) -> bool; fn disable_window_snap(&self) -> bool; fn sloppy_mouse_follows_focus(&self) -> bool; fn create_follows_cursor(&self) -> bool; fn reposition_cursor_on_resize(&self) -> bool; fn save_state(&self, state: &State); fn load_state(&self, state: &mut State); fn setup_predefined_window( &self, state: &mut State, window: &mut Window ) -> bool; // Provided method fn load_window(&self, window: &mut Window) { ... }
}

Required Methods§

source

fn create_list_of_tag_labels(&self) -> Vec<String>

source

fn workspaces(&self) -> Option<Vec<Workspace>>

source

fn focus_behaviour(&self) -> FocusBehaviour

source

fn mousekey(&self) -> Vec<String>

source

fn create_list_of_scratchpads(&self) -> Vec<ScratchPad>

source

fn layouts(&self) -> Vec<String>

source

fn layout_definitions(&self) -> Vec<Layout>

source

fn layout_mode(&self) -> LayoutMode

source

fn insert_behavior(&self) -> InsertBehavior

source

fn single_window_border(&self) -> bool

source

fn focus_new_windows(&self) -> bool

source

fn command_handler<SERVER>( command: &str, manager: &mut Manager<Self, SERVER> ) -> boolwhere SERVER: DisplayServer, Self: Sized,

source

fn always_float(&self) -> bool

source

fn default_width(&self) -> i32

source

fn default_height(&self) -> i32

source

fn border_width(&self) -> i32

source

fn margin(&self) -> Margins

source

fn workspace_margin(&self) -> Option<Margins>

source

fn gutter(&self) -> Option<Vec<Gutter>>

source

fn default_border_color(&self) -> String

source

fn floating_border_color(&self) -> String

source

fn focused_border_color(&self) -> String

source

fn background_color(&self) -> String

source

fn on_new_window_cmd(&self) -> Option<String>

source

fn get_list_of_gutters(&self) -> Vec<Gutter>

source

fn auto_derive_workspaces(&self) -> bool

source

fn disable_tile_drag(&self) -> bool

source

fn disable_window_snap(&self) -> bool

source

fn sloppy_mouse_follows_focus(&self) -> bool

source

fn create_follows_cursor(&self) -> bool

source

fn reposition_cursor_on_resize(&self) -> bool

source

fn save_state(&self, state: &State)

Attempt to write current state to a file.

It will be used to restore the state after soft reload.

Note: this function cannot fail.

source

fn load_state(&self, state: &mut State)

Load saved state if it exists.

source

fn setup_predefined_window( &self, state: &mut State, window: &mut Window ) -> bool

Handle window placement based on WM_CLASS

Provided Methods§

source

fn load_window(&self, window: &mut Window)

Implementors§