elkowar / eww

ElKowars wacky widgets
https://elkowar.github.io/eww
MIT License
9.21k stars 379 forks source link

[FEATURE] Add max and min function to Eww expressions #1122

Closed mohsen-ameli closed 3 months ago

mohsen-ameli commented 3 months ago

Description of the requested feature

I want to set the height of a widget based on the length of an array (which I use in a for loop) multiplied by a base height and I want to set a max height. So a max function would be useful in this case. Also min function could be useful for other usecases.

Proposed configuration syntax

max(num1, num2)

Additional context

No response