Commit Graph

70 Commits

Author SHA1 Message Date
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
Chan Wei Qi
028f315ba8
docs: fix typo (#781)
Fixed a typo: withing --> within
2023-06-03 22:38:19 +02:00
ElKowar
992ac0b59a
Add namespace window option (#723) 2023-03-26 12:26:49 +02:00
Azad
45154bbf59
Add regex match operator (=~) to documentation (#702) 2023-03-08 20:25:50 +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
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
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
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
6b7fa5d55c
Implement loop widget (#350) 2022-04-23 12:54:48 +02:00
elkowar
776dc787e7
Add matches function to simplexpr 2022-04-19 13:49:28 +02:00
MartinJM
0f9847c518
Add several functions for simple expressions (#407)
Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
Co-authored-by: MartinJM <>
2022-04-19 13:29:17 +02:00
Álvaro López
ee4d1d908a
Added desktop window type (#417) 2022-04-13 14:22:08 +02:00
viandox
3fc24a9c72
Add more operators (#401) 2022-02-15 10:12:35 +01:00
Robert7301201
83d4ca0400
Added gtk-layer-shell as a dependency in the docs (#379) 2022-01-13 21:42:46 +01:00
ElKowar
6fec568176
State rework (#335) 2021-11-15 20:06:44 +01:00
Mae Mosich
0fa5c92e04
Documentation proofreading. (#349) 2021-11-15 14:31:23 +01:00
Vermoot
2bdf8d4915
Remove superfluous period in an inline code block (#342) 2021-11-08 13:55:42 +01:00
Owen Rumney
dc76e77fcc
Add link to VSCode extension (#340) 2021-11-06 16:22:42 +01:00
ElKowar
f9153bf37d Add mention of -devel packages to package list in docs 2021-10-23 15:14:50 +02:00
ElKowar
5038b3ddad Add system-level dependency list to documentation (fixes #302) 2021-10-23 15:03:34 +02:00
ElKowar
48bfb1e0c0
feat(config): Allow custom widgets to make use of children (#317) 2021-10-23 14:10:07 +02:00
elkowar
1b2df75453
feat(cli): Add command to open the GTK debugger 2021-10-01 13:34:14 +02:00
elkowar
e49d39e108
fix(docs): Update links to GTK css documentation 2021-10-01 13:23:27 +02:00
Animesh Sahu
80b89dd391
Implement trigger for defpoll variable (#273)
* Implement trigger for defpoll variable

* Rename functions and configuration properties, edit docs to show sample usage, improve nearby fields in docs.
2021-09-11 18:01:41 +02:00
elkowar
5a581a5974
fix: remove no-op timeout on poll-vars 2021-09-11 14:02:28 +02:00
Pedro Burgos
df1168d6d0
Implement optional initial value for pollvars (#272)
* Implement optional initial value for pollvars

* Updated docs to include the atribute initial for pollvars
2021-09-11 13:50:45 +02:00
elkowar
c380313ba7
feat(config): Add optional widget arguments prefixed with ? 2021-08-21 14:24:13 +02:00
elkowar
9af334389b
Add lisp syntax highlighting to docs 2021-08-17 13:07:52 +02:00
elkowar
bb84e36757
Fix example widgets at start of config 2021-08-17 13:07:52 +02:00
elkowar
8679d7cb71
Add comment to explain where to use literal 2021-08-17 13:07:52 +02:00
elkowar
30275007cb
Fix explanation of geometry in configuration 2021-08-17 13:07:52 +02:00
elkowar
0a27685938
reorder pages 2021-08-17 13:07:52 +02:00
elkowar
3d6e9a9ba1
Reformat markdown 2021-08-17 13:07:52 +02:00
elkowar
a7d9d0a6fe
mention literal explicitly 2021-08-17 13:07:52 +02:00
elkowar
e750abf38c
Fix eww expression and start page, add includes to configuration page 2021-08-17 13:07:52 +02:00
elkowar
20f3d3c10d
Document widgets and variables 2021-08-17 13:07:52 +02:00
elkowar
e200f5ef2b
Write defwindow documentation 2021-08-17 13:07:52 +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
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
idontknowwhatimdoing
5936d5baa5
fix typo in docs/src/configuration.md (#200)
Co-authored-by: jkromer <jkromer@student.42.fr>
2021-07-05 22:38:35 +02:00
elkowar
ba092622d2
Move to mdbook 2021-06-22 23:45:54 +02:00
elkowar
8da780d4a1
fix documentation 2021-05-29 12:42:32 +02:00
R o m u l l o
f26d91f455
fix(docs): typos (#177) 2021-05-18 16:39:35 +02:00
elkowar
e7a09dc571
Slightly clean up docs 2021-05-14 20:11:40 +02:00
elkowar
c0d9b53004
Add regex replace and function call docs 2021-05-14 11:55:08 +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
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