Commit Graph

58 Commits

Author SHA1 Message Date
elkowar
e6817f221b
Update a few dependencies 2024-02-17 14:26:44 +01:00
elkowar
8f103e5a3d
Switch to using workspace dependencies 2024-02-17 14:12:48 +01:00
elkowar
4a9455b63f
Remove unnecessary once_cell feature 2023-07-29 14:57:01 +02:00
Philipp Schaffrath
1596c2de9b
use glob to match workspace crates (#500) 2022-07-25 11:28:02 +02:00
elkowar
41093cf0af
Replace lazy_static with once_cell 2021-07-29 15:30:00 +02:00
elkowar
4bf3c6fd63
It compiles :o 2021-07-22 18:40:43 +02:00
elkowar
4f2e9cf063
Fix Cargo.toml files 2021-07-21 19:28:55 +02:00
elkowar
f2b476aaf6
Setup cargo workspace 2021-07-21 19:21:11 +02:00
elkowar
61e42c9c8a
Add star to version in gtk dependencies 2021-06-04 15:35:47 +02:00
snakedye
f33add200c
Bumping the gtk version (#164)
* just enabling wayland

* gtk: bumping the version number
This is meant to improve the stability of the Wayland backend.

* default to x11

Co-authored-by: Bryan Ndjeutcha <ndjeutcha@gmail.com>
2021-05-22 12:08:52 +02:00
legendofmiracles
df5793b204
Predefined variables/Magic vars (#117)
* basic idea

* generates docs

* hardcoded the gen script

* trying to hide magic vars

* eww-state is good now

* structure for cpu var is now there

* renamed cpu to diskstat, bc lib supports it after all

* not going to implement disk IO. go back to this commit, to see a rough idea

* removed it

* formatting

* stopped data race

* Update src/config/system_stats/ram.rs

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

* Update src/config/system_stats/disk.rs

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

* Explains macos better

* Update battery.rs

* Function for each OS when getting battery, a bit cleaner

* reworked battery a little

* all in one big file

* facepalm

* cleaner gen script and one huge file for the system stat stuff

* merge conflicts

* github interface for resolving merge conflicts sucks, this fixes it

* Apply suggestions from code review

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

* Update src/config/inbuilt.rs

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

* Apply suggestions from code review

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

* code suggestions

* component temperature is a json struct

* newlines in magic vars descriptions

* disks is now json, numbers are not wrapped in strings, and more idiomatic code

* Update gen-docs.ts

Co-authored-by: mlvzk <mlvzk@protonmail.com>

* removes a unneeded heading

* more doc updates and EWW_CPU_USAGE is now json

* calculates battery total avg and it's a json struct

Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>
Co-authored-by: mlvzk <mlvzk@protonmail.com>
2021-05-11 18:45:29 +02:00
contribuewwt
3b60b64c34
Modifications to hot reload (#141)
* Hot reload

* Add wayland and no-x11-wayland build to CI

* Fix no-x11-wayland build (#160)

* test-commit

* Update workflow

* add cache to rust build

* Fix wayland build

* Fix no-x11-wayland build

* Use new version of pkg and do big think about how make async

* forgot to autofmt

* updates

* Hot reload

* Use new version of pkg and do big think about how make async

* forgot to autofmt

* updates

* requested changes + autoformat again

Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
2021-05-06 19:43:50 +02:00
snakedye
9ea20cd753
Proper wayland support (#125)
* Initial commit for wayland support

* Improvements to Wayland backend, structs and enums

* gtk-layer-shell-rs imported

* Eww compiles with wayland backend

* Full layershell support

* Compatibility with x11 backend

* updated docs and better compatibily with X config

* error in example

* "screen" in config works

* Updated documentation

* bar example for wayland

* eww follow focus when screen is undefined

* NumWithUnit

* Removed SurfaceDefinition for StrutDefinition
again...

* cargo fmt

* fix match statement for screen number

* fix focusable / kb interactivity

* revision #2

* fix: compile error and example

* feat: I fixed the deps
X11 doesn't compile because of some x11 fuckery

* fix: x11 fuckery
PR NOW REEEEEEEEEEEEEEEEEEEEEEEEE

* fix conflics and cargo fmt

* i can't read

* conflicts: a never ending loop...

* dammit ptr

* conflicts: Cargo.lock

* 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

* make multiple daemons possible and make commands time out

* Add EwwPaths struct and refactor path handling in general

* Update docs to include <reserve>

* Improve handling of paths and daemon-ids

* Add elvis operator

* Allow literal-tag content to use user-defined widgets

* Add support for overriding monitor in CLI

* change formatting config

* Improve error messages for non-existant config dir

* Added tooltips (#127)

* update dependencies

* Explicetely states where to look for installing eww (#131)

I think this should be added, because we already had a couple of people opening issues because they didn't read the docs on how to install eww.

* (Very) Rudimentry gif support (#143)

* rudimentry gif support

* revert main.rs

* Fix variable reference detection, should fix #144

* cleanup TextPos in eww debug

* Manually resolve escaped symbols in xml.

This shouldn't be necesary.
Fixes #154 and fixes #147

* Add JSON support for exprs (fixes #146)

* Add docs for json values and make value related names shorter

* Add animated icon

* Initial commit for wayland support

* Improvements to Wayland backend, structs and enums

* gtk-layer-shell-rs imported

* Eww compiles with wayland backend

* Full layershell support

* Compatibility with x11 backend

* updated docs and better compatibily with X config

* "screen" in config works

* Updated documentation

* eww follow focus when screen is undefined

* Removed SurfaceDefinition for StrutDefinition
again...

* cargo fmt

* fix match statement for screen number

* fix focusable / kb interactivity

* revision #2

* fix: compile error and example

* feat: I fixed the deps
X11 doesn't compile because of some x11 fuckery

* fix conflics and cargo fmt

* i can't read

* conflicts: a never ending loop...

* dammit ptr

* conflicts: Cargo.lock

* yeeting git syntax

* trying to resolve conflicts

* yeeting Cargo.lock...

* i try

* revision: removing duplicates

* fix geometry, example and improving docs

* clearing up the documentation

* I forgot the scss file.
I also edited the bar to take advantage of eww expressions.

* more yeeting and moved exclusive to window

Co-authored-by: Bryan Ndjeutcha <ndjeutcha@gmail.com>
Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>
Co-authored-by: undefinedDarkness <38278035+undefinedDarkness@users.noreply.github.com>
Co-authored-by: legendofmiracles <30902201+legendofmiracles@users.noreply.github.com>
2021-05-03 21:14:34 +02:00
elkowar
ce4c22e2a6 Add JSON support for exprs (fixes #146) 2021-04-14 14:18:08 +02:00
elkowar
eb804ae346 update dependencies 2021-03-23 11:14:06 +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
e9af869a0a Not use inotify on non-linux compile targets 2021-02-17 16:45:57 +01:00
elkowar
9238688774 Implement struts 2021-02-17 16:42:54 +01:00
elkowar
23db60508e update dependencies 2021-01-07 21:43:00 +01:00
elkowar
5fac2271b5 Remove dependencies and simplify CLI, also adding eww ping command 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
Pedro Burgos
380c64784b
Removed unused dependency (#63) 2020-11-24 14:33:59 +01:00
ElKowar
2e8b1af083
Lazy variables (#58)
* Implement lazy variables

* cleanup

* refactor
2020-11-08 15:08:01 +01:00
elkowar
31ed9d0135 Get rid of a lot of dependencies 2020-10-25 20:40:40 +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
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
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
b6f28990ce added fields to the Cargo.toml 2020-10-18 23:26: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
elkowar
6a5839a93e Add support for tail-based script-vars 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
1f86c72ef6 VarName newtype, nothing works RN just tmp 2020-10-18 23:25:00 +02:00
elkowar
9f69bbb440 add -d flag to detach from terminal 2020-10-18 23:25:00 +02:00
elkowar
f92f8bfb66 Implement inline var-refs 2020-10-18 23:25:00 +02:00
elkowar
40fe82b4a0 Add unknown attribute warning 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
aefa9016f1 implement attribute type conversions 2020-09-27 12:29:39 +02:00