Commit graph

67 commits

Author SHA1 Message Date
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
contribuewwt
8436b666c2
(Very) Rudimentry gif support (#143)
* rudimentry gif support

* revert main.rs
2021-03-28 23:16:47 +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
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
05d9320598 Cleanup 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
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
elkowar
47908304e2 Implement hover and scroll 2020-10-18 23:25:00 +02:00