Commit Graph

292 Commits

Author SHA1 Message Date
elkowar
42f3410b5b
Remove nightly options from rustfmt.toml 2024-02-17 14:14:46 +01:00
elkowar
8f103e5a3d
Switch to using workspace dependencies 2024-02-17 14:12:48 +01:00
elkowar
9ca98448cc Switch to stable rust 2024-02-17 13:21:05 +01:00
elkowar
60ab81ac13 Yeet try_blocks 😢 2024-02-17 13:21:05 +01:00
elkowar
0eed19332b Yeet trace_macros, extract_if, slice_concat_trait, never_type 2024-02-17 13:21:05 +01:00
elkowar
6c786447e5 Yeet hash_extract_if, let_chains 2024-02-17 13:21:05 +01:00
elkowar
e93f345210 Yeet use of patterns feature 2024-02-17 13:21:05 +01:00
elkowar
031a2b52ec Fix clippy lints 2024-02-17 13:21:05 +01:00
elkowar
82a429a569 Yeet box patterns 2024-02-17 13:21:05 +01:00
nativerv
607f4411d3
add :unindent property (#804) 2024-02-17 12:15:05 +01:00
Elekrisk
8c977892d4
add gravity property to label widget (#949) 2024-02-17 10:42:29 +01:00
Vladyslav Aviedov
e95d3af963
Add gtk stack widget (#838) 2024-02-17 10:38:06 +01:00
WilfSilver
65d622c81f
Add window arguments (#431)
* Allow window definitions to have parameters

* Implement SimplExpr for all other window definition options

* Take gtk scaling into account when setting struts

* Cleanup

* Rename window_argumentss to instance_id_to_args

* Update docs to emphasis window arguments being constant

* Replace eww windows with active-windows and list-windows

* Fix extracting duration from string

* Format + reduce warnings

---------

Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
2023-12-20 21:04:38 +01:00
ElKowar
4f1f853b5f
Improve flexibility of monitor configuration (#1003)
* Allow named monitors on wayland

* Allow list of monitor matchers
2023-12-20 16:59:39 +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
c94b40d3fa
fix property naming with _ in docs 2023-08-18 10:48:00 +02:00
elkowar
4450ef55fa
Add substring function 2023-08-18 10:46:12 +02:00
end-4
9d0b667dea
Add trigonometric functions (#823) 2023-08-16 13:40:24 +02:00
elkowar
efce800aff
Update dependencies 2023-08-16 13:16:32 +02:00
elkowar
d42bb08e84
Fix circular progress crashing when value is out of range
fixes #682, fixes #854
2023-08-16 12:51:43 +02:00
elkowar
dc3129aee2
Add :css property to widgets 2023-07-29 21:53:46 +02:00
elkowar
27830a8c6d
Fix eww not working on wayland if X feature is enabled 2023-07-29 20:05:45 +02:00
elkowar
4a9455b63f
Remove unnecessary once_cell feature 2023-07-29 14:57:01 +02:00
éclairevoyant
acf255f24a
Comply with rust-lang/rfcs#2140 (#815) 2023-07-29 14:48:13 +02:00
elkowar
25e50eda46
cleanup some builtin vars 2023-06-10 20:57:40 +02:00
elkowar
c613275621
Don't constantly log total_avg error 2023-06-10 20:30:10 +02:00
elkowar
b31e397e97
Cleanup EWW_TIME API and code 2023-06-09 17:21:21 +02:00
Eren Önen
4d63f6deec
add EWW_TIME magic variable (#792) 2023-06-09 17:17:41 +02:00
elkowar
e76206817d
Add timeout log to run_command 2023-03-26 13:10:35 +02:00
elkowar
88cd3a29dc
Provide better error and docs for duration type 2023-03-26 12:40:16 +02:00
ElKowar
992ac0b59a
Add namespace window option (#723) 2023-03-26 12:26:49 +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
kawaki-san
de232de41b
feat: truncate-left for labels (#721)
feat: `truncate-left` for labels

Adds a flag that allows truncation to the left of text

---------

Co-authored-by: kawaki-san <dev@kanjala.com>
Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
2023-03-26 10:25:24 +02:00
n3oney
c72b881c3f feat: add justify property 2023-03-20 12:41:35 +01:00
éclairevoyant
fba770255d
remove box_syntax (#711)
Rust removed support for box_syntax in a recent nightly release :'(
2023-03-20 12:40:36 +01:00
elkowar
8ff4142064
Cleanup code, fix clippy lints 2023-02-25 17:08:57 +01:00
elkowar
d2c7bde29d
Fix outdated formatting config 2023-02-25 16:51:08 +01:00
ElKowar
7290b9bb8d
Add jq function (#695) 2023-02-25 16:27:32 +01:00
Ezequiel Ramis
6b576c02ac
Vanilla CSS support (#467)
Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>
2023-02-25 10:35:35 +01:00
Peter Crawley
59e8e02f15
Remove broken newline and mention zfs (#685) 2023-02-25 10:25:55 +01:00
Roland Fredenhagen
6a64a28629
Add support for null safe indexing e.g. for arrays (#631)
* Add support for null safe indexing e.g. for arrays

This follows the JavaScript syntax:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining#syntax

* add docs

* Add test for safe access index to non indexable

Co-authored-by: Josiah Hilden <jhilden13@gmail.com>

Co-authored-by: Josiah Hilden <jhilden13@gmail.com>
Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>
2023-01-05 20:21:29 +01:00
Gioele De Vitti
29bfe4129f
Fix temperature values not being accessible due to NaN values (#650)
* Fix NaN values making JSON not accessible

* Explain NaN replacement

* Report fix in changelog
2023-01-05 20:16:47 +01:00
Roland Fredenhagen
3ae34602eb
Make some operators lazily evaluated (#627)
* Make some operators lazily evaluated

Fixes #624

* Add to CHANGELOG.md
2023-01-05 20:00:40 +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
f37f3ca3d8
Fix some clippy lints and run cargo fmt (#603) 2022-10-24 19:41:16 +02:00
ElKowar
471f1a117d
Allow for floating-point percentages in window geometry (fixes #601) (#602) 2022-10-24 19:08:50 +02:00
elkowar
0cccd9d74f
Fix for loop widget not removing scopes when value changes 2022-10-01 17:37:32 +02:00
elkowar
f0d4f40dcf
Fix panic on trailing backslash in string (fixes #551) 2022-10-01 17:24:34 +02:00
Josiah Hilden
37fc231761
Safe Access Operator (#577)
Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
2022-10-01 17:03:54 +02:00
elkowar
d58d91de78
Prepare 0.4.0 release 2022-09-04 20:20:13 +02:00
elkowar
7623e7e692
Improve CSS error handling by parsing GTK error output (see #446) 2022-09-04 16:16:37 +02:00
elkowar
58907eac4b
Add some comments 2022-09-03 21:06:50 +02:00
elkowar
d3b94cc76e
Factor out scss handling into it's own module 2022-09-03 20:33:18 +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
2c3b3ff260
Cleanup AstError and Error representation in general (#549) 2022-09-03 18:17:21 +02:00
elkowar
9e3df8be3b
Remove BREAKING CHANGE notification in calendar onchange 2022-09-03 10:18:53 +02:00
elkowar
bf532e63cc
Fix calendar months being indexed by 0 (fixes #544) 2022-09-03 10:16:01 +02:00
elkowar
44a8331417
Fix circular-progress showing 0 when value is 100 and clockwise is false (fixes #543) 2022-09-03 10:09:47 +02:00
elkowar
956f96fd76
Update dependencies 2022-08-29 16:34:19 +02:00
elkowar
28af00becd
Refactor app.rs, cleaning up run-while handling 2022-08-29 16:25:44 +02:00
elkowar
683936c23d
Remove some unused code 2022-08-29 14:53:02 +02:00
elkowar
e1d9e5cfff
Add check for duplicate variable definition (fixes #320) 2022-08-29 14:07:53 +02:00
elkowar
eba1c032ae
Add build commit hash to eww --version 2022-08-29 13:29:38 +02:00
elkowar
3c57ca59bf
Fix scale running onchange on scripted changes (fixes #482) 2022-08-29 12:43:01 +02:00
elkowar
abb7315215
Cleanup script-var-handler properly in drop impl 2022-08-29 11:51:52 +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
elkowar
e09c7364a5
Make max value for graph f64::MAX (fixes #540) 2022-08-29 11:11:38 +02:00
elkowar
ec7f982bdf
Add names to threads and tasks for easier debugging of crashes 2022-08-29 11:10:36 +02:00
ElKowar
17d91f8a44
Fix listen vars not being cleaned up when reloading config (#538) 2022-08-27 14:23:28 +02:00
elkowar
3ab53b0323
Make sure starting listenvars is idempodent (fixes #360) 2022-08-27 10:43:51 +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
viandox
d814edd0d5
Add support for :active on event box (#529) 2022-08-18 15:11:10 +02:00
gavynriebau
7a3e2f4448
Add support for "round-digits" property for scale widget (#509)
Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
2022-08-15 10:34:54 +02:00
elkowar
0a5d6f4ac9
set overlay passthrough to true (fixes #503) 2022-08-15 10:29:59 +02:00
elkowar
4004362633
Attempt to fix inconsistent window closing behavior w.r.t. script var cleanup and toggle 2022-08-15 10:17:26 +02:00
elkowar
9da37b8bd0
Add lexer test for empty string interpolation 2022-08-09 12:41:02 +02:00
elkowar
aac4c3aef4
hotfix: fix panic because of deallocated GTK widget being called in handler (fixes #478) 2022-07-27 18:50:29 +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
viandox
962c06c0ee
Fixed #501 add password prop to input (#502) 2022-07-25 11:28:28 +02:00
Niclas
b2f60a1f43
Remove some unnecessary allocations (#480) 2022-07-03 00:00:49 +02:00
elkowar
0b0715fd50
Fix some types missing in widget docs 2022-05-26 15:00:34 +02:00
elkowar
fe7bc30fc9
Release version 0.3.0 2022-05-26 14:00:57 +02:00
elkowar
a85d35d919
Fix some comments in overlay 2022-05-26 13:41:30 +02:00
viandox
c855ec07d5
Add overlay widget (#457) 2022-05-26 13:40:09 +02:00
elkowar
3297c4eb70
Add format explanation to eww open position and size docs 2022-05-26 13:27:58 +02:00
elkowar
77adfbca6b
Set window class to window name 2022-05-26 13:17:11 +02:00
elkowar
00ff1dc492
Fix error message of enum_parse-based attributes 2022-05-26 13:13:35 +02:00
Yury Ankudinov
52e14d8263
Fix/signal disconnect (#445)
Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
2022-05-26 10:45:47 +02:00
elkowar
a37c2e435f
Fix magic vars not working anymore (fixes #462) 2022-05-23 22:22:37 +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
elkowar
4fb5c37a35
Add hint about width of progress (fixes #458) 2022-05-22 11:21:45 +02:00
elkowar
6b5c35cbf9
Add EWW_CONFIG_DIR, EWW_CMD, EWW_EXECUTABLE variables 2022-05-21 15:06:42 +02:00
elkowar
c0dcc43336
Improve error message for missing default monitor on wayland 2022-05-16 12:04:29 +02:00
elkowar
78ae9cb00a
Add error message when overriding builtin widgets accidentally (fixes #456) 2022-05-14 19:19:17 +02:00
elkowar
e810f2a67a
Add version to workspace dependencies 2022-05-09 18:58:55 +02:00