Commit graph

129 commits

Author SHA1 Message Date
Axarva
827d47b26e
Provide an example configuration (with space for more!) (#99) 2021-02-05 21:51:06 +01:00
undefinedDarkness
66bfe25d87
Add -c / --config argument to eww daemon (#104) 2021-02-02 19:59:30 +01:00
elkowar
ebb8fc065d Run poll-vars immediately when starting (fixes #98) 2021-01-31 16:20:19 +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
8530f90a7c Add eww windows command and restructure daemon response.
Daemon response is now a dedicated type that contains information
about failure / success, and used in more commands, such as `open` and
`close`. Thus, this fixes #90 and also fixes #89.

For #90, the decision has been made to not make this independent of the
daemon, as that makes it possible to provide more information, and
because in most cases, users will have the daemon running when checking
windows anyways.
2021-01-16 18:09:35 +01:00
elkowar
ff756da2c5 Exit 1 on daemon connection failure 2021-01-16 16:39:17 +01:00
elkowar
6c2e0dbbc1 Fix script-vars being ran without window using them, and add debug flag. fixes #94. 2021-01-16 16:14:03 +01:00
elkowar
23db60508e update dependencies 2021-01-07 21:43:00 +01:00
elkowar
3a7f3a49df Adjust documentation to fit new daemon CLI API 2021-01-07 21:22:54 +01:00
elkowar
34876efe02 Slight cleanup 2021-01-07 21:21:08 +01:00
elkowar
018bfee24c Make daemon startup explicit 2021-01-07 21:21:08 +01:00
elkowar
1c6853cc5d add eww open-many 2021-01-03 17:16:31 +01:00
elkowar
5fac2271b5 Remove dependencies and simplify CLI, also adding eww ping command 2021-01-03 17:16:31 +01:00
elkowar
6df15379bb Fix IPC streams not working correctly 2021-01-03 17:16:31 +01:00
elkowar
05d9320598 Cleanup 2021-01-03 17:16:31 +01:00
elkowar
b9b8a77cf4 Handle application exit somewhat nicely 2021-01-03 17:16:31 +01:00
elkowar
b4880a55b8 More work done 2021-01-03 17:16:31 +01:00
elkowar
542dd62d7b Basics actually work still 2021-01-03 17:16:31 +01:00
elkowar
19681a0db8 start playing around 2021-01-03 17:16:31 +01:00
elkowar
c079eb855d Add support for string escapes like \n in label texts (fixes #84) 2021-01-02 18:17:37 +01:00
Jack Michaud
8aa0e8c74d
Change environment variable syntax to ${VAR} - Fix for #81 (#83)
* Adjust environment variable regex to ${VAR}

* Add replace_env_var_references test
2021-01-02 17:49:32 +01:00
elkowar
0d2ee78f91 add tests for source-code extraction from xml 2020-12-28 16:38:29 +01:00
elkowar
e17699d50f Improve error message for parsing alignment and orientation 2020-12-28 16:22:41 +01:00
Axarva
58d57c4acd
Add eww close-all subcommand to close all running windows (#80)
* Add close-all command

* Add close-all command

* Re-add close-all using close_window method
2020-12-28 16:12:59 +01:00
elkowar
f7d6bd4cb3 Fix empty lines in command output when communicating with daemon\n\nfixes #76 2020-12-26 13:11:15 +01:00
elkowar
4404ab4d5d Properly await execution of child processes in run_command.
This is, for example, used in the onclick of buttons.
Not waiting caused child processes not to be cleaned up correctly.

Thus, this fixes #75.
2020-12-26 12:59:59 +01:00
elkowar
9d817268d7 Implement multiple classes on a single element, and fix changing class names (fixes #70) 2020-12-09 19:19:19 +01:00
elkowar
f83fc4d969 Use Box rather than Frame for <literal> (fixes #68) 2020-12-07 18:32:44 +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
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