Commit Graph

90 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
4a0901b16c
Update rust nightly toolchain 2024-02-17 12:01:32 +01:00
ElKowar
a9a35c1804
Support --duration close timer for windows (#884) 2023-08-18 15:51:42 +02:00
Tamás Táncos
393f7fa401
Update the gtk libraries to 0.17 (#747) 2023-08-18 15:03:01 +02:00
elkowar
efce800aff
Update dependencies 2023-08-16 13:16:32 +02:00
éclairevoyant
acf255f24a
Comply with rust-lang/rfcs#2140 (#815) 2023-07-29 14:48:13 +02:00
Eren Önen
4d63f6deec
add EWW_TIME magic variable (#792) 2023-06-09 17:17:41 +02:00
ElKowar
642983a066
Default to building with both x11 and wayland (#722)
* Default to building with both x11 and wayland

* Update CI to include tests and building for wayland and x11
2023-03-26 12:09:03 +02:00
ElKowar
7290b9bb8d
Add jq function (#695) 2023-02-25 16:27:32 +01:00
Niclas
678e4dbc6b
Remove levenshtein crate in favor of strsim (#635)
strsim is already used by other dependencies

Signed-off-by: buffet <niclas@countingsort.com>

Signed-off-by: buffet <niclas@countingsort.com>
2022-12-07 16:14:13 +01:00
Niclas
ec4c2d1a4f
Update clap to 4.0 (#633)
Acked-by: ElKowar
Signed-off-by: buffet <niclas@countingsort.com>

Signed-off-by: buffet <niclas@countingsort.com>
2022-11-28 14:45:51 +01:00
Niclas
7a0e1b77f2
Disables default features for grass (#606) 2022-10-29 14:02:06 +02:00
Niclas
991bb8d078
Clean up Cargo.toml's (#607) 2022-10-29 14:01:48 +02:00
ElKowar
964cafce74
Update dependencies (#604) 2022-10-24 21:12:08 +02:00
Philipp Herzog
52e9603dd8
Fix: update crate version in lockfile (#558) 2022-09-13 11:29:17 +02:00
elkowar
7623e7e692
Improve CSS error handling by parsing GTK error output (see #446) 2022-09-04 16:16:37 +02:00
elkowar
89ea0a1fbc
Update dependencies 2022-09-03 18:49:07 +02:00
elkowar
b4d47956b5
Move from structopt to clap-derive 2022-09-03 18:41:23 +02:00
elkowar
956f96fd76
Update dependencies 2022-08-29 16:34:19 +02:00
Carlos Pinto
535f21f5f9
Allow output names to select a monitor (#522)
Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
2022-08-29 11:20:36 +02:00
Niclas
9977384b06
Cargo update and remove most duplicate dependencies (#531)
Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
2022-08-27 10:12:23 +02:00
pentamassiv
d8bb8c4142
Updated dependencies (#449)
* Updated gtk dependencies

* Added badge for status of dependencies

* Updated remaining deps for eww and other crates

* Removed obsolete imports

* Fixed problems with PR and bumped deps

* Updated x11rb
2022-07-27 18:25:08 +02:00
elkowar
0b0715fd50
Fix some types missing in widget docs 2022-05-26 15:00:34 +02:00
Lucas Ransan
1830fe8535
Fix build on Freebsd (#459)
* Fix get_battery_capacity type on BSD

* Update sysinfo: 0.16.5 -> 0.23.12
2022-05-23 19:27:20 +02:00
viandox
fb0e57a014
fix: limit ipc socket filename length (#396) 2022-02-15 10:17:52 +01:00
legendofmiracles
bf7f49848d
Remove unindent crate (#357) 2022-02-02 21:33:26 +01:00
ElKowar
6fec568176
State rework (#335) 2021-11-15 20:06:44 +01:00
Pedro Burgos
89d4dfda27
Circular progress widget (#328)
* Basic implementation of circle: works

* Attempts to draw child widget

* Drawing a ring with a child widget inside

* Rotation

* thickness for circular progressbar

* upgraded glib-gtk to 0.14

* Clockwise and counterclockwise cicular progress widget

* Allow specifying a background color

* queue draw on value update

* ring background and foreground

* Update circular_progressbar.rs

* implament default values for CircProgPriv

* Remove useless comment

* Renamed circle-progress to circular-progress

* Actually handle multiple children widgets

* Clipping the childrens, allowing for background colors

* Clean comments of despair

* renamed c to center

* Removed commented code

* fix overflowing children allocating space outside the circle

* Removed unused import

* Fix resizing issues and implement margin via cairo

* Cleanup

* make margins work with empty widgets

* Set css name for the custom widget

Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
2021-11-10 00:20:01 +01:00
legendofmiracles
c1a9d3e593
Update dependencies, fixes RUSTSEC-2021-0119 (#337) 2021-11-06 16:15:55 +01:00
Florian Proksch
e1558965ff
chore: dependency update (#274)
Update dependencies of gtk and gdkx11 to 0.14
2021-09-11 18:02:35 +02:00
legendofmiracles
e4e0178de9
fixes compilation on latest nightly (#265) 2021-09-11 12:16:19 +02:00
elkowar
4942925859
Cleanup and update dependencies 2021-08-18 15:24:00 +02:00
elkowar
f0b27d2ec1
Allow for aligned text using unindent 2021-08-14 16:08:43 +02:00
elkowar
eb3c2646a0
Add did you mean question to wrong variables 2021-08-02 15:54:38 +02:00
elkowar
24c9fee204
Fully implement string interpolation with ${} syntax 2021-07-31 13:44:23 +02:00
elkowar
41093cf0af
Replace lazy_static with once_cell 2021-07-29 15:30:00 +02:00
elkowar
680498df82
Fix lexer string escaping 2021-07-23 18:24:42 +02:00
elkowar
618e652389
Implement YuckFiles for include handling 2021-07-22 21:06:22 +02:00
elkowar
4bf3c6fd63
It compiles :o 2021-07-22 18:40:43 +02:00
elkowar
3efcafed84
Merge branch 'window_config_cleanup' into config_rework 2021-07-21 20:36:26 +02:00
elkowar
38f5307417
Start migration 2021-07-21 20:30:02 +02:00
elkowar
db9e673b81
Clean up X Window configuration and add more options
factor out some x specific logic cleanly

factor out more code into backend specific sections

Minor refactor to enum parsing

fix build on wayland

make default of wm-ignore depend on type and reserve, and add documentation
2021-07-21 20:28:51 +02:00
elkowar
f2b476aaf6
Setup cargo workspace 2021-07-21 19:21:11 +02:00
Midnight Exigent
31730bea32
Set _NET_WM_WINDOW_TYPE and related fields properly (#176)
* add windowtype attribute to window tag. set _NET_WM_WINDOW_TYPE property for x11

* up

* remove strum and strum_macros dependencies

* Update configuration.md

* Update window_definition.rs

* Update window_definition.rs

should work now

Co-authored-by: Midnight Exigent <6959267-midnightexigent@users.noreply.gitlab.com>
2021-07-15 13:37:50 +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
b1cb74d386
Add onmiddleclick and onrightclick to button 2021-05-09 13:57:24 +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
11f595be2c Fix variable reference detection, should fix #144 2021-04-04 00:06:34 +02:00