pub struct Config {Show 24 fields
pub modkey: String,
pub mousekey: Option<Modifier>,
pub workspaces: Option<Vec<Workspace>>,
pub tags: Option<Vec<String>>,
pub max_window_width: Option<Size>,
pub layouts: Vec<String>,
pub layout_definitions: Vec<Layout>,
pub layout_mode: LayoutMode,
pub insert_behavior: InsertBehavior,
pub scratchpad: Option<Vec<ScratchPad>>,
pub window_rules: Option<Vec<WindowHook>>,
pub disable_current_tag_swap: bool,
pub disable_tile_drag: bool,
pub disable_window_snap: bool,
pub focus_behaviour: FocusBehaviour,
pub focus_new_windows: bool,
pub single_window_border: bool,
pub sloppy_mouse_follows_focus: bool,
pub create_follows_cursor: Option<bool>,
pub auto_derive_workspaces: bool,
pub disable_cursor_reposition_on_resize: bool,
pub keybind: Vec<Keybind>,
pub state_path: Option<PathBuf>,
pub theme_setting: ThemeSetting,
}
Expand description
General configuration
Fields§
§modkey: String
§mousekey: Option<Modifier>
§workspaces: Option<Vec<Workspace>>
§max_window_width: Option<Size>
§layouts: Vec<String>
§layout_definitions: Vec<Layout>
§layout_mode: LayoutMode
§insert_behavior: InsertBehavior
§scratchpad: Option<Vec<ScratchPad>>
§window_rules: Option<Vec<WindowHook>>
§disable_current_tag_swap: bool
§disable_tile_drag: bool
§disable_window_snap: bool
§focus_behaviour: FocusBehaviour
§focus_new_windows: bool
§single_window_border: bool
§sloppy_mouse_follows_focus: bool
§create_follows_cursor: Option<bool>
§auto_derive_workspaces: bool
§disable_cursor_reposition_on_resize: bool
§keybind: Vec<Keybind>
§state_path: Option<PathBuf>
§theme_setting: ThemeSetting
Implementations§
source§impl Config
impl Config
pub fn check_mousekey(&self, verbose: bool)
sourcepub fn check_keybinds(&self, verbose: bool)
pub fn check_keybinds(&self, verbose: bool)
Check all keybinds to ensure that required values are provided Checks to see if value is provided (if required) Checks to see if keys are valid against Xkeysym Ideally, we will pass this to the command handler with a dummy config
source§impl Config
impl Config
pub fn clear_keybinds(&mut self)
Trait Implementations§
source§impl Config for Config
impl Config for Config
source§fn setup_predefined_window(
&self,
state: &mut State,
window: &mut Window
) -> bool
fn setup_predefined_window( &self, state: &mut State, window: &mut Window ) -> bool
Pick the best matching WindowHook
, if any, and apply its config.
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: DisplayServer>( command: &str, manager: &mut Manager<Self, SERVER> ) -> bool
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 background_color(&self) -> String
fn disable_window_snap(&self) -> bool
fn always_float(&self) -> bool
fn default_width(&self) -> i32
fn default_height(&self) -> i32
fn focused_border_color(&self) -> String
fn on_new_window_cmd(&self) -> Option<String>
fn get_list_of_gutters(&self) -> Vec<Gutter>
fn disable_tile_drag(&self) -> bool
source§fn save_state(&self, state: &State)
fn save_state(&self, state: &State)
Attempt to write current state to a file. Read more
source§fn load_state(&self, state: &mut State)
fn load_state(&self, state: &mut State)
Load saved state if it exists.
fn sloppy_mouse_follows_focus(&self) -> bool
fn auto_derive_workspaces(&self) -> bool
fn reposition_cursor_on_resize(&self) -> bool
fn create_follows_cursor(&self) -> bool
fn load_window(&self, window: &mut Window)
source§impl<'de> Deserialize<'de> for Configwhere
Config: Default,
impl<'de> Deserialize<'de> for Configwhere Config: Default,
source§fn 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
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more