Commit graph

341 commits

Author SHA1 Message Date
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
080696a751 Fix documentation for includes 2020-12-13 01:01:33 +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
0e97847a3a
Add docs for stacking, focusable and screen on window
Adds missing documentation for the `<window>` attributes `stacking`, `focusable` and `screen`
2020-11-25 10:32:16 +01:00
Pedro Burgos
380c64784b
Removed unused dependency (#63) 2020-11-24 14:33:59 +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
496eb29038 Fix documentation of windows block 2020-11-08 11:16:15 +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
Swexti
c8ff2ce4f4
Include general structure in configuration documentation 2020-10-27 10:17:38 +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
ay9thqi3tbqiwbegqsg a[soiaosshasdg
5f5c9897df
extended troubleshooting in the docs and fixed a few typos (#46)
* extended troubleshooting and fixed typos

* extended troubleshooting and fixed typos

* Update docs/content/main/troubleshooting.md

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

* Update docs/content/main/troubleshooting.md

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

* Update docs/content/main/configuration.md

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

Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>
2020-10-26 09:38:03 +01:00
elkowar
9c5ed210e5 Add favicon to docs 2020-10-25 23:56:08 +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
e4f6ae2854 Add PR template 2020-10-25 18:01:39 +01:00
elkowar
b60cdcdf06 Fix replace in build-docs script 2020-10-25 17:41:10 +01:00
elkowar
5116334978 Update documentation theme 2020-10-25 17:34:26 +01:00
elkowar
26f667b792 Restrict when gitlab pages job is being ran 2020-10-25 16:59:49 +01:00
elkowar
7013acac63 Fix doc comments in widget_definitions.rs 2020-10-25 16:54:52 +01:00
ElKowar
571f65f627 Autogen docs (#44)
* Implement simple node script

* Add zola documentation

* Add gh pages workflow

* autogen widget docs
2020-10-25 16:50:52 +01:00
elkowar
b349c003e8 make file reloading faster 2020-10-25 12:29:01 +01:00
ElKowar
16db5c8664 Add issue templates 2020-10-25 12:16:35 +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
4b86f84479 Merge branch 'dev' 2020-10-25 10:51:53 +01:00
elkowar
0bab2963fe Temporarily fix the implementation of limit-width 2020-10-25 10:51:17 +01:00
elkowar
7efa1f0909 Merge branch 'dev' 2020-10-24 22:58:56 +02:00
elkowar
199d75a0b3 Merge branch 'dev' 2020-10-24 22:57:06 +02: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
3bd73b46f2 Stop script-vars and close windows on eww kill 2020-10-23 20:28:18 +02:00
elkowar
e427101c19 Add eww logs command. fixes #7 2020-10-23 20:17:21 +02:00