Commit graph

97 commits

Author SHA1 Message Date
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
gk
1c0ac2fd83
fix typo (solves #60) (#61) 2020-11-21 11:51:00 +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
0f68a76507
Implement multiple value update, breakign syntax of eww update (#51) 2020-10-30 22:12:21 +01:00
ay9thqi3tbqiwbegqsg a[soiaosshasdg
dd3c50f3ac
fixed widget docs issues, with missing descriptions and renamed a widget (#47)
* fixed widget docs issues, with missing descriptions and combo box is renamed to combo box text, cause thats what it's actually is

* forgot this one thing

* Update src/widgets/widget_definitions.rs

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

* Update src/widgets/widget_definitions.rs

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

* Update src/widgets/widget_definitions.rs

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

* Update src/widgets/widget_definitions.rs

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

* Update src/widgets/widget_definitions.rs

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

Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>
2020-10-26 14:41:57 +01:00
elkowar
31ed9d0135 Get rid of a lot of dependencies 2020-10-25 20:40:40 +01:00
elkowar
8c939fb054 Cleanup value by using DebugCustom 2020-10-25 20:20:10 +01:00
elkowar
5116334978 Update documentation theme 2020-10-25 17:34:26 +01:00
elkowar
7013acac63 Fix doc comments in widget_definitions.rs 2020-10-25 16:54:52 +01:00
elkowar
b349c003e8 make file reloading faster 2020-10-25 12:29:01 +01:00
ElKowar
3d31788b2f
Cleanup the file structure of main (#43) 2020-10-25 11:33:37 +01:00
ay9thqi3tbqiwbegqsg a[soiaosshasdg
24e3a36c52
Combo box and as_vec() (#41)
Add `as_vec` for PrimitiveValues and implement the `combo-box` widget
2020-10-25 10:56:45 +01:00
elkowar
0bab2963fe Temporarily fix the implementation of limit-width 2020-10-25 10:51:17 +01:00
elkowar
412b53aca6 Actually fix process cleanup 2020-10-24 22:56:09 +02:00
elkowar
3849835ff9 Stop script-vars and close windows on eww kill 2020-10-24 22:56:09 +02:00
elkowar
e427101c19 Add eww logs command. fixes #7 2020-10-23 20:17:21 +02:00
elkowar
a906c18bd7 Implement selectable windows, fixes #27 2020-10-23 19:40:39 +02:00
elkowar
4bbbfe7eab Add more flexibility to <label> 2020-10-23 18:50:15 +02:00
ElKowar
a0929c0a84
Make script-vars use process groups (#40)
* Make script-vars use process groups

Tail script-vars now make use of process groups to fix issues with
non-finished processes staying around.
I don't really understand any of this.
2020-10-23 18:03:29 +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
11eafe5d5f Cleanup detach by using nix over libc 2020-10-22 19:06:08 +02:00
ay9thqi3tbqiwbegqsg a[soiaosshasdg
bde3197d02 added troubleshooting to the readme (and fixed a small naming convention issue) (#39) 2020-10-22 18:33:47 +02:00
elkowar
ecdfd589fa add read-timeout to client 2020-10-21 23:38:44 +02:00
elkowar
4a4b0a3343 Add more tests 2020-10-21 19:58:15 +02:00
ay9thqi3tbqiwbegqsg a[soiaosshasdg
4ddbea7194
added color widget (difference to the color button, is thats its not hidden behind a button so you can always see it. (#38) 2020-10-21 19:57:37 +02:00
elkowar
5f3e16e70c Fix parsing of AttrValues (fixes #37) 2020-10-21 19:14:17 +02:00
elkowar
7f39205c92 Fix dumb flooring error in window sizing/positioning calculations (fixes #30) 2020-10-20 22:09:45 +02:00
ay9thqi3tbqiwbegqsg a[soiaosshasdg
89c006e040
added expanded boolean to the expander (#36) 2020-10-20 21:57:14 +02:00
elkowar
715e8e6ecc Remove text widget and add limit-width attribute to label 2020-10-20 21:39:54 +02:00
elkowar
ca079d149d Set default space-evenly to true 2020-10-20 21:00:38 +02:00
elkowar
7a6ddcc566 Rename colorButton to color-button 2020-10-20 20:12:38 +02:00
elkowar
084d37124a Fix issues introduced in #32 2020-10-20 20:11:59 +02:00
ay9thqi3tbqiwbegqsg a[soiaosshasdg
d5fc9df94d
added color button, i am unsure what to do with it know... you figure that out (#32)
* Add GtkColorButton widget
2020-10-20 20:07:50 +02:00
elkowar
423c79d263 Implement relative window size and position. closes #30 2020-10-20 18:44:50 +02:00
elkowar
0207ccaf3d Cleanup script-var-handler behaviour 2020-10-19 20:39:34 +02:00
ur name
4a9a712af8 added a always-there variable called window_name, that contains.. who would have guessed.. the window name - LegendOfMiracles 2020-10-19 18:01:53 +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
ay9thqi3tbqiwbegqsg a[soiaosshasdg
7ab8588b9d Improve CLI help output
Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>

Update src/main.rs

Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>
2020-10-18 23:25:54 +02:00
ur name
5f882e5992 Add MIT license 2020-10-18 23:25:48 +02:00
elkowar
52503fcf7a Allow for interpolation in attrs 2020-10-18 23:25:00 +02:00
elkowar
f555d2fe80 replace impl_many! with impl_try_from 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
de83f1fb69 Add calendar widget 2020-10-18 23:25:00 +02:00
elkowar
3fbb8eb237 write to log file 2020-10-18 23:25:00 +02:00
elkowar
0ea3d2255b Implement command (fixes #9) 2020-10-18 23:25:00 +02:00
ElKowar
3d07a84d1b Ipc cleanup (#18)
* Clean up IPC, remove ipc-channel dependency

* Remove dead socket file on server startup

* Cleanup CLI handling
2020-10-18 23:25:00 +02:00