[][src]Struct i3status_rs::blocks::backlight::BacklightConfig

pub struct BacklightConfig {
    pub device: Option<String>,
    pub step_width: u64,
    pub root_scaling: f64,
    pub invert_icons: bool,
}

Configuration for the Backlight block.

Fields

device: Option<String>

The backlight device in /sys/class/backlight/ to read brightness from.

step_width: u64

The steps brightness is in/decreased for the selected screen (When greater than 50 it gets limited to 50)

root_scaling: f64

Scaling exponent reciprocal (ie. root). Some devices expose raw values that are best handled with nonlinear scaling. The human perception of lightness is close to the cube root of relative luminance. Settings between 2.4 and 3.0 are worth trying. More information: https://en.wikipedia.org/wiki/Lightness

For devices with few discrete steps this should be 1.0 (linear).

invert_icons: bool

Trait Implementations

impl Clone for BacklightConfig[src]

impl Debug for BacklightConfig[src]

impl Default for BacklightConfig[src]

impl<'de> Deserialize<'de> for BacklightConfig where
    BacklightConfig: Default
[src]

Auto Trait Implementations

impl RefUnwindSafe for BacklightConfig[src]

impl Send for BacklightConfig[src]

impl Sync for BacklightConfig[src]

impl Unpin for BacklightConfig[src]

impl UnwindSafe for BacklightConfig[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.