v0.5.0

elkowar/ewwv0.5.0Feb 17, 2024by elkowar

AI Summary

Major release adding extensive new features including Vanilla CSS support, new window options, multiple new widgets, and enhanced simplexpr capabilities. Includes a breaking change to the windows command.

Key Highlights

  • BREAKING: Replace `eww windows` with `eww active-windows` and `eww list-windows`
  • Add Vanilla CSS support (by Ezequiel Ramis)
  • Add `jq` function for JSON processing
  • Add `stack` widget (by vladaviedov)
  • Add `tooltip` widget (by Rayzeq)
  • Default to building with x11 and wayland support simultaneously

Breaking Changes

  • Remove `eww windows` command, replace with `eww active-windows` and `eww list-windows`

New Features

  • :namespace window option
  • truncate-left property on label
  • gravity property on label
  • safe access (`?.`) in simplexpr
  • safe access with index (`?.[n]`)
  • floating-point numbers in percentages
  • lazy evaluation for `and`, `or`, `?:`
  • justify property on label
  • EWW_TIME magic variable
  • trigonometric functions (sin, cos, tan, cot)
  • degree/radian conversions (degtorad, radtodeg)
  • substring function
  • --duration flag to eww open
  • support for `<primary>` monitor
  • multiple matchers in monitor field
  • unindent property on label
  • tooltip widget
  • eww shell-completions command

Full Release Notes

# Eww 0.5.0

## BREAKING CHANGES
- Remove `eww windows` command, replace with `eww active-windows` and `eww list-windows`

## Features
- Add `:namespace` window option
- Default to building with x11 and wayland support simultaneously
- Add `truncate-left` property on `label` widgets (By: kawaki-san)
- Add `gravity` property on `label` widgets (By: Elekrisk)
- Add support for safe access (`?.`) in simplexpr (By: oldwomanjosiah)
- Allow floating-point numbers in percentages for window-geometry
- Add support for safe access with index (`?.[n]`) (By: ModProg)
- Made `and`, `or` and `?:` lazily evaluated in simplexpr (By: ModProg)
- Add Vanilla CSS support (By: Ezequiel Ramis)
- Add `jq` function, offering jq-style json processing
- Add `justify` property to the label widget, allowing text justification (By: n3oney)
- Add `EWW_TIME` magic variable (By: Erenoit)
- Add trigonometric functions (`sin`, `cos`, `tan`, `cot`) and degree/radian conversions (`degtorad`, `radtodeg`) (By: end-4)
- Add `substring` function to simplexpr
- Add `--duration` flag to `eww open`
- Add support for referring to monitor with `<primary>`
- Add support for multiple matchers in `monitor` field
- Add `stack` widget (By: vladaviedov)
- Add `unindent` property to the label widget, allowing to disable removal of leading spaces (By: nrv)
- Switch to stable rust toolchain (1.76)
- Add `tooltip` widget, which allows setting a custom tooltip (not only text), to a widget (By: Rayzeq)
- Add `eww shell-completions` command, generating completion scripts for different shells

## Fixes
- Fix wrong values in `EWW_NET`
- Fix logfiles growing indefinitely