Commit graph

57 commits

Author SHA1 Message Date
elkowar
b9c9e67c2e cleanup TextPos in eww debug 2021-04-14 12:20:33 +02:00
elkowar
f544d0e19a change formatting config 2021-03-08 22:28:29 +01:00
elkowar
0c762de864 Allow literal-tag content to use user-defined widgets 2021-03-02 17:24:14 +01:00
elkowar
5b3344fc5b make multiple daemons possible and make commands time out 2021-03-02 12:23:18 +01:00
ElKowar
9a8bbf4114
Expression language (#124)
* Add AST

* add make-shift testing parser, and make stuff ocmpile

* add proper expression parser

* make string format use '

* Add empty doc page for expressions

* add tests

* Clean up file structure and add unary operators

* Write documentation
2021-03-02 10:27:52 +01:00
ElKowar
a18901f187
State refactor (#121)
* Add widget_node trait and generic impl

* Use WidgetNode stuff in some places

* Use WidgetNode stuff in rendering code

* Refactor
2021-02-26 21:03:53 +01:00
elkowar
9238688774 Implement struts 2021-02-17 16:42:54 +01:00
legendofmiracles
7648a400c3
Shows warnings when defining variables that are already defined, and other general improvements (#105)
* refactored everything into a function, and checks the larger/smaller one

* general improvements

* Simplify code

Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
2021-01-31 16:11:52 +01:00
elkowar
090165eb8c Cleanup config include code and error handling 2021-01-31 15:09:45 +01:00
elkowar
47863a3e77 Add eww reload command 2021-01-21 21:47:40 +01:00
elkowar
23db60508e update dependencies 2021-01-07 21:43:00 +01:00
elkowar
b4880a55b8 More work done 2021-01-03 17:16:31 +01:00
elkowar
0d2ee78f91 add tests for source-code extraction from xml 2020-12-28 16:38:29 +01:00
elkowar
0b900861cb Add daemon subcommand (fixes #69) 2020-12-07 18:20:40 +01:00
elkowar
3458a25104 Cleanup 2020-11-21 22:17:21 +01:00
Pedro Burgos
90944eb0ef
Improve error messages when parsing config files (#62)
* Better error messages when parsing xml config files

* Store config file path in eww_config struct

* cargo fmt
2020-11-21 19:06:33 +01:00
Pedro Burgos
bc555900d3
Support Multi-file configuration (#45)
* install pango in CI

* <includes> xml support and EwwConfig merging

* Moved EwwConfig changes after merge

* Implemented relative paths

* Implemented paths in error messages

* Corrected include's error context message

* Written merge_includes test, fixed a simple bug

* Added "includes" label error check

* cargo format

* install pango in CI

* <includes> xml support and EwwConfig merging

* Moved EwwConfig changes after merge

* Implemented relative paths

* Implemented paths in error messages

* Corrected include's error context message

* Written merge_includes test, fixed a simple bug

* Added "includes" label error check

* cargo format

* Removed outdated comments and unused imports

* Fix dependency error

* Updated docs to add the <includes> block

* Removed unnecessary comment

Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>

* Removed duplicated test block

Should'nt be there in the first place. My bad.

Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>

* Better error context handling in eww_config.rs

Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>

* Better error context handling in eww_config.rs (again)

Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>

* Removed unnecessary error check

Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>

Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
Co-authored-by: druskus20@gmail.com <druskus20>
2020-11-20 20:09:46 +01:00
ay9thqi3tbqiwbegqsg a[soiaosshasdg
ac8bc7d8b5
Fix a few clippy warnings (#59) 2020-11-14 17:57:50 +01:00
ElKowar
2e8b1af083
Lazy variables (#58)
* Implement lazy variables

* cleanup

* refactor
2020-11-08 15:08:01 +01:00
ElKowar
9146905314
Advanced window positioning with anchors (#55)
* Implement anchoring

* adjust documentation
2020-11-01 17:33:57 +01:00
elkowar
3849835ff9 Stop script-vars and close windows on eww kill 2020-10-24 22:56:09 +02:00
elkowar
a906c18bd7 Implement selectable windows, fixes #27 2020-10-23 19:40:39 +02:00
elkowar
4573f056b0 Clean up file structure, and add Struts tag which isn't functional yet 2020-10-23 17:55:59 +02:00
elkowar
423c79d263 Implement relative window size and position. closes #30 2020-10-20 18:44:50 +02:00
elkowar
00580318e3 Refactor and shorten debug output 2020-10-18 23:26:00 +02:00
elkowar
b06162dcf5 Refactor attr_value to only have one variant 2020-10-18 23:26:00 +02:00
elkowar
52503fcf7a Allow for interpolation in attrs 2020-10-18 23:25:00 +02:00
elkowar
c11cfaa26a Simplify PrimitiveValue, add comments for doc-gen 2020-10-18 23:25:00 +02:00
elkowar
6a5839a93e Add support for tail-based script-vars 2020-10-18 23:25:00 +02:00
elkowar
8391a9a03e Implement env-var expansion (fixes #11) 2020-10-18 23:25:00 +02:00
Safin Singh
c57713ca9a CI/CD & Formatting (#6)
* Improve autoformatting guides, add editorconfig and add CI/CD
2020-10-18 23:25:00 +02:00
elkowar
0fca322bde Add stacking option to window definition 2020-10-18 23:25:00 +02:00
elkowar
3d5509b570 Add inline xml support for vars 2020-10-18 23:25:00 +02:00
elkowar
42ae0e6d04 Add literal tag 2020-10-18 23:25:00 +02:00
elkowar
600f104552 Add documentation 2020-10-18 23:25:00 +02:00
elkowar
1f86c72ef6 VarName newtype, nothing works RN just tmp 2020-10-18 23:25:00 +02:00
elkowar
7c05cda33a Add linenumber information to more errors 2020-10-18 23:25:00 +02:00
elkowar
f92f8bfb66 Implement inline var-refs 2020-10-18 23:25:00 +02:00
elkowar
bb60ab69c3 Add unfinished implementation of 'visible' 2020-10-18 23:25:00 +02:00
elkowar
4e69eb6390 Fix issues in current nightly by removing try_match 2020-10-18 23:25:00 +02:00
elkowar
d05d45e7ab add toolchain file 2020-10-18 23:25:00 +02:00
elkowar
71cbc7ca49 Handle script-var command polling 2020-10-18 23:25:00 +02:00
elkowar
8467cf3fde Cleanup, improve error handling 2020-10-18 23:25:00 +02:00
elkowar
50b8840c5b generally finished XML implementation. TODO: error handling, remove old code 2020-10-18 23:25:00 +02:00
elkowar
d1c991ba92 Basic implementation of XML parsing, doesn't quite work yet 2020-10-18 23:25:00 +02:00
elkowar
1f6fe840fc cleanup, but file watching breaks 2020-10-18 23:25:00 +02:00
elkowar
fd6a49c5e7 cleanup error handling and improve widget configuration options 2020-09-27 13:49:20 +02:00
elkowar
aefa9016f1 implement attribute type conversions 2020-09-27 12:29:39 +02:00
elkowar
c9c9f25afb Implement basic cli with IPC 2020-09-23 01:06:17 +02:00
elkowar
ada307aac2 cleanup widget definition code 2020-09-22 20:59:56 +02:00