* Allow window definitions to have parameters
* Implement SimplExpr for all other window definition options
* Take gtk scaling into account when setting struts
* Cleanup
* Rename window_argumentss to instance_id_to_args
* Update docs to emphasis window arguments being constant
* Replace eww windows with active-windows and list-windows
* Fix extracting duration from string
* Format + reduce warnings
---------
Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
feat: `truncate-left` for labels
Adds a flag that allows truncation to the left of text
---------
Co-authored-by: kawaki-san <dev@kanjala.com>
Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
* Add support for null safe indexing e.g. for arrays
This follows the JavaScript syntax:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining#syntax
* add docs
* Add test for safe access index to non indexable
Co-authored-by: Josiah Hilden <jhilden13@gmail.com>
Co-authored-by: Josiah Hilden <jhilden13@gmail.com>
Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>
* Updated gtk dependencies
* Added badge for status of dependencies
* Updated remaining deps for eww and other crates
* Removed obsolete imports
* Fixed problems with PR and bumped deps
* Updated x11rb
* Added support to label text alignment.
Since labels in gtk can't be aligned via css (I still don't know why)
and can be only aligned using code, this patch adds support for this
functionality by adding the properties :xalign and :yalign to the label
expression.
The exact behavior is described by the docs.
* Updated changelog with :xalign and :yalign for labels
* Add drag and drop functionality to eventbox (fixes#409)
* Don't allow dragging empty string values
* Support dragging text
* Provide the type of drag element to the command, separate out day month and year in onclick event of calendar