Commit graph

146 commits

Author SHA1 Message Date
Florian Proksch
3a486f181e
I3 dock fix (#258)
* fix: problem with docked widgets on i3

Show window only after settings x-props. According to the EWMH spec:
> _NET_WM_WINDOW_TYPE
> This SHOULD be set by the Client before mapping to a list of atoms
> indicating the functional type of the window.

So the _NET_WM_WINDOW_TYPE atom must be set before showing the window.

The callback to the configure event handle now checks the windows
current geometry to not move the window if it's already where it's
supposed to be. This prevents the eww daemon from endlessly chatting
with X11 in some instances.

* chore: cargo fmt
2021-09-11 17:34:53 +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
Ben Fiedler
089f617393
Indicate label truncation (#259)
Closes #257
2021-09-11 12:44:25 +02:00
legendofmiracles
634724bf29
Makes code more rusty/idiomatic (#264)
* makes eww code more idiomatic

* makes simplexpr more idiomatic

* makes yuck more idiomatic
2021-09-11 12:43:44 +02:00
legendofmiracles
87d4bc4c76
Checks if window is open to not flicker the window (#263) 2021-09-11 12:34:58 +02:00
Florian Proksch
07a9b97e5b
fix: correct gt and lt parsing 2021-09-05 17:51:30 +02:00
ElKowar
70285e0ebf
Add more information to EWW_RAM, fix documentation of magic variables
Better EWW_RAM / Docs update
2021-08-27 18:35:38 +02:00
druskus20
6ad999f299
Fixed percentages and ram usage 2021-08-27 18:34:44 +02:00
druskus20
fb2bff5137 Deprecation warning for EWW_CPU_USAGE 2021-08-26 02:26:40 +02:00
druskus20
0a71f3ccf8 This is now, how one calculates percentages 2021-08-26 01:38:00 +02:00
elkowar
3f65733d12
feat(simplexpr): allow json literals in simplexprs 2021-08-25 14:52:14 +02:00
druskus20
d216e8a723 EWW_NET fixed null interface error 2021-08-24 22:37:53 +02:00
elkowar
8de692da8a
fix: Fix listen-var process cleanup
listenvars now run in their own process-groups. Thus, when they get
stopped, not only does the main script get killed, but also the spawned
children, rather than them being adopted by init.
2021-08-24 14:01:58 +02:00
druskus20
905118f612 Added % used ram to EWW_RAM 2021-08-24 13:39:04 +02:00
elkowar
30868de604
fix(logs): remove variable updates from info logs 2021-08-23 10:15:17 +02:00
elkowar
bbcc8a3d29
fix: Wait 50ms before reloading config, to avoid reading an empty file 2021-08-23 10:12:31 +02:00
elkowar
17750289a5
fix: Run hot-reloading only on modify events 2021-08-23 10:06:28 +02:00
druskus20
5ca6ba03c4 Added used space to EWW_DISK 2021-08-23 00:06:45 +02:00
druskus20
86dce341ac Updated the docs, renamed EWW_CPU_USAGE to EWW_CPU 2021-08-21 19:55:04 +02:00
druskus20
4c9315a016 Adding more memory data to EWW_RAM as json fields 2021-08-21 19:12:28 +02:00
druskus20
8234145bf2 Renamed system stat functions 2021-08-21 18:30:06 +02:00
elkowar
77055b80e7
fix(diag): Add span to default values of custom widgets 2021-08-21 16:59:59 +02:00
elkowar
c380313ba7
feat(config): Add optional widget arguments prefixed with ? 2021-08-21 14:24:13 +02:00
elkowar
7aa8d8a404
fix(diag): Improve warning for unknown attributes 2021-08-21 12:33:37 +02:00
elkowar
9ce219a420
feat(cli): add --toggle to open-many, allow closing multiple windows at once 2021-08-19 15:45:07 +02:00
elkowar
7ffebf6903
Fix documentation of magic variables 2021-08-18 17:14:58 +02:00
elkowar
3830e003fe
Clean up example config further 2021-08-18 16:30:11 +02:00
elkowar
f83ad913be
Clean up example bar 2021-08-18 16:21:04 +02:00
elkowar
4942925859
Cleanup and update dependencies 2021-08-18 15:24:00 +02:00
elkowar
8faedb0e89
Fix documentation on literal widget 2021-08-17 12:04:42 +02:00
elkowar
7abf38cbfc
Include spans in var_refs of simplexpr 2021-08-17 11:53:45 +02:00
elkowar
c20b172662
Fix representation of string-interpolations by adding a dedicated concat AST variant 2021-08-17 11:10:48 +02:00
elkowar
f0b27d2ec1
Allow for aligned text using unindent 2021-08-14 16:08:43 +02:00
elkowar
398717b782
Add restart flag 2021-08-14 15:06:19 +02:00
elkowar
47e1301180
Slightly clean up error reporting 2021-08-14 14:56:49 +02:00
elkowar
b8d222384b
Make only some commands able to start the daemon 2021-08-14 14:44:22 +02:00
elkowar
e72a16a5bd
Fix daemonization 2021-08-14 14:03:16 +02:00
elkowar
096aedc0d4
Clean up some logging output 2021-08-14 13:32:09 +02:00
elkowar
91f714dc11
Add config validation step 2021-08-14 13:23:04 +02:00
elkowar
f7f718b94a
Some more error message improvements 2021-08-14 11:58:04 +02:00
elkowar
c0581e7769
Improve error messages for multiple chidren in a widget and config loading errors 2021-08-14 11:36:39 +02:00
elkowar
279785f420
Log errors in log even when a response-sender is listening, add error message when a monitor doesn't exist 2021-08-14 11:28:15 +02:00
elkowar
7647fcd2c4
Undo eww-state hotreloading change
it caused variables not to be linked to the state after the reload
2021-08-13 17:25:26 +02:00
elkowar
eb11c29e6a
fix some hot-reloading issues 2021-08-12 18:17:17 +02:00
elkowar
7bb5fddaa6
Fix windows closing eventhough they don't work 2021-08-12 16:39:10 +02:00
elkowar
9ee852c0fd
Add centerbox widget 2021-08-12 16:19:00 +02:00
elkowar
dcf27a0cbf
Some misc fixes and improvements 2021-08-10 19:23:52 +02:00
elkowar
ec8b12d206
Allow digits in identifiers in simplexpr 2021-08-10 14:30:33 +02:00
elkowar
142894c3ce
Add more concrete error messages for missing argument list 2021-08-02 16:35:43 +02:00