Commit Graph

587 Commits

Author SHA1 Message Date
elkowar
a06927e356
parser! 2021-07-01 20:38:23 +02:00
elkowar
e21983f92d
asdf 2021-07-01 19:57:10 +02:00
elkowar
159ded782e
i hate this 2021-06-29 15:25:22 +02:00
elkowar
209123de3a
fast linked list thing 2021-06-29 15:01:18 +02:00
elkowar
c937707865
linked list thingy 2021-06-29 14:18:20 +02:00
elkowar
2f85889ad9
arst 2021-06-29 13:18:50 +02:00
elkowar
10d3d9375f
slightly clean up widget_definitions.rs 2021-06-23 11:00:40 +02:00
elkowar
9e81c7d221
update docs link in readme 2021-06-22 23:47:38 +02:00
elkowar
ba092622d2
Move to mdbook 2021-06-22 23:45:54 +02:00
legendofmiracles
914d022c0a
config::eww_config::test::test_merge_includes fix test (#189) 2021-06-22 21:49:34 +02:00
snakedye
9865e4ff9b
Adding the GtkRevealer widget (#194)
* widgets: new gtk_releaver builder

* correcting notes

* re: review

* re:re: using utils

* re:re:re:indent 🙏

Co-authored-by: Bryan Ndjeutcha <ndjeutcha@gmail.com>
2021-06-22 20:51:51 +02:00
elkowar
b388d04bfa
asdf 2021-06-05 18:35:43 +02:00
elkowar
61e42c9c8a
Add star to version in gtk dependencies 2021-06-04 15:35:47 +02:00
elkowar
cd5b001d89
Only apply gtkrange value attribute when not being dragged (fixes #95) 2021-06-03 15:52:40 +02:00
Aditya Shakya
d0df1e7419
Add adi1090x's setup to the readme 2021-06-03 15:14:30 +02:00
elkowar
b951bd9b83
document scroll direction placeholder value for onscroll 2021-06-03 15:11:47 +02:00
elkowar
8da780d4a1
fix documentation 2021-05-29 12:42:32 +02:00
snakedye
8800980011
Fix for #175. (#180)
* widgets on non existing output do not spawn

* fix no-x11-wayland build

Co-authored-by: Bryan Ndjeutcha <ndjeutcha@gmail.com>
2021-05-23 22:30:36 +02:00
elkowar
0180914015
allow for setting RUST_LOG environment variable manually 2021-05-22 12:20:04 +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
R o m u l l o
f26d91f455
fix(docs): typos (#177) 2021-05-18 16:39:35 +02:00
elkowar
2515141eeb
Revert "lexer that don't work"
This reverts commit 0beadb1108.
2021-05-15 10:14:43 +02:00
elkowar
0beadb1108
lexer that don't work 2021-05-15 09:51:52 +02:00
legendofmiracles
28c57afcd6
replaces all daemon prints with logs and enables logging by default (#168) 2021-05-14 23:23:16 +02:00
elkowar
161de3dc0a
more stuff 2021-05-14 20:57:32 +02:00
elkowar
e7a09dc571
Slightly clean up docs 2021-05-14 20:11:40 +02:00
elkowar
3b129957cd
asdf 2021-05-14 17:08:35 +02:00
ElKowar
4688f04cf3
Add configuration rework notice to readme 2021-05-14 13:16:50 +02:00
elkowar
c0d9b53004
Add regex replace and function call docs 2021-05-14 11:55:08 +02:00
elkowar
54f6713ffe
fix function call parsing 2021-05-14 11:40:41 +02:00
elkowar
457da0aaf5
Add proper floating point digit parser 2021-05-13 21:07:20 +02:00
elkowar
7d525cbaa6
add function call syntax 2021-05-13 20:47:39 +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
elkowar
6eea3e039d
Add cursor property to widgets (fixes #66) 2021-05-09 17:04:29 +02:00
ElKowar
fa70a71a1a
Readjust window position when size changes (fixes #113) (#163) 2021-05-09 15:58:00 +02:00
elkowar
fa99408d35
Remove unused imports 2021-05-09 14:53:44 +02:00
elkowar
29c741466e
Add regex test to expression language (fixes #162) 2021-05-09 14:52:51 +02:00
elkowar
b1cb74d386
Add onmiddleclick and onrightclick to button 2021-05-09 13:57:24 +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
ElKowar
907f39cf86
Fix no-x11-wayland build (#160)
* test-commit

* Update workflow

* add cache to rust build

* Fix wayland build

* Fix no-x11-wayland build
2021-05-04 10:09:41 +02:00
elkowar
2f433878c2
Add wayland and no-x11-wayland build to CI 2021-05-04 09:30:00 +02:00
elkowar
488841d3e8
Fix doc build in gh actions 2021-05-04 09:23:38 +02:00
contribuewwt
8c5143653c
gen-docs.js ~ widget argument type support (#148)
* Clumsy typescript / deno rewrite

* Requested Changes
2021-05-04 09:17:16 +02:00
snakedye
661c29f1d2
correcting docs and removing unused Sides (#159)
Co-authored-by: Bryan Ndjeutcha <ndjeutcha@gmail.com>
2021-05-03 23:33:13 +02:00
elkowar
a1a313be70
Fix clippy lints 2021-05-03 23:29:58 +02:00
elkowar
c130dbe37b
fix documentation for exclusive in wayland 2021-05-03 22:49:43 +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
ca7ff95f2c Add animated icon 2021-04-22 09:27:20 +02:00
elkowar
aaac4c3b43 Add docs for json values and make value related names shorter 2021-04-14 14:28:22 +02:00
elkowar
ce4c22e2a6 Add JSON support for exprs (fixes #146) 2021-04-14 14:18:08 +02:00