diff --git a/crates/eww/src/config/inbuilt.rs b/crates/eww/src/config/inbuilt.rs index ba299395..687fb057 100644 --- a/crates/eww/src/config/inbuilt.rs +++ b/crates/eww/src/config/inbuilt.rs @@ -30,7 +30,7 @@ macro_rules! define_builtin_vars { } define_builtin_vars! { - // @desc EWW_TEMPS - Heat of the components in Celcius + // @desc EWW_TEMPS - Heat of the components in degree Celsius // @prop { : temperature } "EWW_TEMPS" [2] => || Ok(DynVal::from(get_temperatures())), diff --git a/crates/eww/src/widgets/widget_definitions.rs b/crates/eww/src/widgets/widget_definitions.rs index 4cfd7621..a90faf89 100644 --- a/crates/eww/src/widgets/widget_definitions.rs +++ b/crates/eww/src/widgets/widget_definitions.rs @@ -312,7 +312,8 @@ fn build_gtk_combo_box_text(bargs: &mut BuilderArgs) -> Result Result { let gtk_widget = gtk::Expander::new(None); diff --git a/docs/src/expression_language.md b/docs/src/expression_language.md index 15dfc6ed..1c493e01 100644 --- a/docs/src/expression_language.md +++ b/docs/src/expression_language.md @@ -40,6 +40,7 @@ Supported currently are the following features: - some function calls: - `round(number, decimal_digits)`: Round a number to the given amount of decimals - `sin(number)`, `cos(number)`, `tan(number)`, `cot(number)`: Calculate the trigonometric value of a given number in **radians** + - `min(a, b)`, `max(a, b)`: Get the smaller or bigger number out of two given numbers - `degtorad(number)`: Converts a number from degrees to radians - `radtodeg(number)`: Converts a number from radians to degrees - `replace(string, regex, replacement)`: Replace matches of a given regex in a string