[][src]Struct penrose::core::config::Config

pub struct Config { /* fields omitted */ }

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.