[−][src]Struct penrose::core::config::Config
The main user facing configuration details.
See ConfigBuilder for details of what can be overwritten.
Example
use penrose::Config; let config = Config::default(); assert_eq!(config.border_px(), &2); assert_eq!(config.focused_border(), &0xcc241d);
Implementations
impl Config
[src]
pub fn builder(&self) -> ConfigBuilder
[src]
Make a new associated builder struct containing the field values of this struct
pub fn workspaces(&self) -> &Vec<String>
[src]
Obtain a reference to the initial available workspaces.
Constraints
You must provide at least one workspace per screen
pub fn floating_classes(&self) -> &Vec<String>
[src]
Obtain a reference to the window classes that will always be considered floating
pub fn layouts(&self) -> &Vec<Layout>
[src]
Obtain a reference to the Layout functions to be used by each Workspace
Constraints
You must provide at least one layout function
pub fn focused_border(&self) -> &u32
[src]
Obtain a reference to the focused border color as a hex literal
pub fn unfocused_border(&self) -> &u32
[src]
Obtain a reference to the unfocused border color as a hex literal
pub fn border_px(&self) -> &u32
[src]
Obtain a reference to the border width of each window in pixels
pub fn gap_px(&self) -> &u32
[src]
Obtain a reference to the gap between tiled windows in pixels
pub fn main_ratio_step(&self) -> &f32
[src]
Obtain a reference to the percentage of the screen to grow the main region by when incrementing
pub fn show_bar(&self) -> &bool
[src]
Obtain a reference to whether or not space should be reserved for a status bar
pub fn top_bar(&self) -> &bool
[src]
Obtain a reference to whether or not the reserved space for a status bar is at the top of the sceen
pub fn bar_height(&self) -> &u32
[src]
Obtain a reference to the height of the space to be reserved for a status bar in pixels
impl Config
[src]
pub fn ws_range(&self) -> Range<usize>
[src]
Create a range from 1 -> n_workspaces for use in keybindings
Trait Implementations
impl Clone for Config
[src]
impl Debug for Config
[src]
impl Default for Config
[src]
impl PartialEq<Config> for Config
[src]
impl StructuralPartialEq for Config
[src]
Auto Trait Implementations
impl RefUnwindSafe for Config
[src]
impl Send for Config
[src]
impl Sync for Config
[src]
impl Unpin for Config
[src]
impl UnwindSafe for Config
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,