pub struct Config {Show 27 fields
pub backend: Backend,
pub log_level: String,
pub modkey: String,
pub mousekey: Option<Modifier>,
pub workspaces: Option<Vec<Workspace>>,
pub tags: Option<Vec<String>>,
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 focus_on_activation: FocusOnActivationBehaviour,
pub window_hiding_strategy: WindowHidingStrategy,
pub keybind: Vec<Keybind>,
pub state_path: Option<PathBuf>,
pub theme_setting: ThemeConfig,
}
Expand description
General configuration
Fields§
§backend: Backend
§log_level: String
§modkey: String
§mousekey: Option<Modifier>
§workspaces: Option<Vec<Workspace>>
§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
§focus_on_activation: FocusOnActivationBehaviour
§window_hiding_strategy: WindowHidingStrategy
§keybind: Vec<Keybind>
§state_path: Option<PathBuf>
§theme_setting: ThemeConfig
Implementations§
Source§impl Config
impl Config
pub fn check_mousekey(&self, verbose: bool)
pub fn check_log_level(&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<H: Handle>(
&self,
state: &mut State<H>,
window: &mut Window<H>,
) -> bool
fn setup_predefined_window<H: Handle>( &self, state: &mut State<H>, window: &mut Window<H>, ) -> 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 focus_on_activation(&self) -> FocusOnActivationBehaviour
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<H: Handle, SERVER: DisplayServer<H>>( command: &str, manager: &mut Manager<H, 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<H: Handle>(&self, state: &State<H>)
fn save_state<H: Handle>(&self, state: &State<H>)
Attempt to write current state to a file. Read more
Source§fn load_state<H: Handle>(&self, state: &mut State<H>)
fn load_state<H: Handle>(&self, state: &mut State<H>)
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 window_hiding_strategy(&self) -> WindowHidingStrategy
fn load_window<H>(&self, window: &mut Window<H>)where
H: Handle,
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Freeze for Config
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