Commit graph

238 commits

Author SHA1 Message Date
elkowar
6211267e06
Add onclick to eventbox 2022-04-29 10:52:25 +02:00
elkowar
051d50c8fe
Add onaccept to input (fixes #441) 2022-04-29 10:32:38 +02:00
elkowar
982056f69f
Fix signal inexistant signal handler error 2022-04-27 17:44:38 +02:00
elkowar
1daeb0c77a
Fix unnumbered placeholders not working in commands 2022-04-24 16:01:53 +02:00
ElKowar
6b7fa5d55c
Implement loop widget (#350) 2022-04-23 12:54:48 +02:00
Pedro Burgos
4ffb7d4841
Transform Widget (#348) 2022-04-19 20:15:25 +02:00
Pedro Burgos
d1bbe32625
corrected start-angle to start-at (#433) 2022-04-19 19:11:59 +02:00
Biniam Bekele
fe4097c73e
EWW_BATTERY is empty string when its {total_avg} property would otherwise be NaN (#425)
Fixes #373
2022-04-19 13:50:52 +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
ElKowar
7648eb8086
Add drag and drop functionality to eventbox (Implements #409) (#432)
* Add drag and drop functionality to eventbox (fixes #409)

* Don't allow dragging empty string values

* Support dragging text

* Provide the type of drag element to the command, separate out day month and year in onclick event of calendar
2022-04-19 13:00:50 +02:00
elkowar
b3ac542e79
Add notification windowtype 2022-04-13 15:32:26 +02:00
elkowar
aa54487c47
Update to latest nightly 2022-04-13 15:19:39 +02:00
viandox
1e0a2a6341
Fixes #247 implement scroll widget (#406) 2022-04-13 15:07:38 +02:00
viandox
b100704bc7
fixes #424 allow tabs in simplexpr (#426) 2022-04-13 14:54:02 +02:00
Álvaro López
ee4d1d908a
Added desktop window type (#417) 2022-04-13 14:22:08 +02:00
viandox
fb0e57a014
fix: limit ipc socket filename length (#396) 2022-02-15 10:17:52 +01:00
viandox
3fc24a9c72
Add more operators (#401) 2022-02-15 10:12:35 +01:00
Pedro Burgos
ee07598a03
Fix anyhow's glob imports (#391) 2022-02-03 20:37:00 +01:00
legendofmiracles
bf7f49848d
Remove unindent crate (#357) 2022-02-02 21:33:26 +01:00
Sahil Chouksey
f8676f2bec
fix missing arguments (#361)
Co-authored-by: xix3r <xix3r@pop-os.localdomain>
2022-02-02 21:32:11 +01:00
Pedro Burgos
106106ade3
Graph widget (#338) 2021-12-19 16:46:15 +01:00
elkowar
b026be426e
Fix documentation not building because of missing container widget doc comment 2021-11-15 21:06:17 +01:00
ElKowar
6fec568176
State rework (#335) 2021-11-15 20:06:44 +01:00
Pedro Burgos
597625634d
Add doc comment (#345) 2021-11-10 14:42:13 +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
68e6d7b00d
add properties to magic vars (#343) 2021-11-08 17:51:00 +01:00
Pedro Burgos
45badb7f38
Implement eww get command (#319) 2021-11-05 12:37:37 +01:00
Pedro Burgos
08eef05ae8
Add support for :hover css selectors for eventbox (#323) 2021-10-25 01:03:21 +02:00
ElKowar
48bfb1e0c0
feat(config): Allow custom widgets to make use of children (#317) 2021-10-23 14:10:07 +02:00
Pedro Burgos
0aaaa2c2b8
[FEATURE] Added support for marks on scales (#293) 2021-10-17 13:39:44 +02:00
elkowar
c50bfb7184
feat: add --no-daemonize flag that disables daemonizing eww (fixes #288) 2021-10-16 14:15:44 +02:00
elkowar
d708902c03
fix(docs): mention orientation in scale properties 2021-10-16 14:01:54 +02:00
ZetaNumbers
90466ab9bf
fix: eww passes x11 and wayland features down to yuck (#306) 2021-10-16 13:44:59 +02:00
elkowar
5b52cd927a
fix: Remove accidental reference to x11 only feature in use statement in app.rs 2021-10-16 13:39:07 +02:00
elkowar
00bb0b4b0b
fix: allow windows to get moved when windowtype is normal (fixes #303) 2021-10-13 09:29:08 +02:00
Fenella
9c15e4c887
Fix typo (#283)
Co-authored-by: neralie <izzyro@tuta.io>
2021-10-01 13:38:16 +02:00
elkowar
1b2df75453
feat(cli): Add command to open the GTK debugger 2021-10-01 13:34:14 +02:00
Pedro Burgos
a07fb35eda
Fix onscroll direction issue (#280) 2021-09-13 16:19:24 +02:00
Animesh Sahu
4a56b74b9a
Adds :onhoverlost and separates out event based actions on eventbox widget (See #251 for more info). (#256)
* Adds :onhoverlost and fixes all the masks mistyped

* Adds eventbox widget and added deprecation error level warning on top-level widgets

* Run cargo fmt

* Fixes broken old link

* Fix nested element glitch by ignoring inferior events, improve deprecation arg processing into single operation

* Extract large deprecation msg to note
2021-09-12 12:01:56 +02: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
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
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