Commit graph

258 commits

Author SHA1 Message Date
MoetaYuko
361b8d1b66 systray: handle mouse click events 2024-03-31 13:20:36 +02:00
MoetaYuko
f80e093223 systray: watch the proper signal for new title 2024-03-31 13:20:36 +02:00
Temmie
1b819fb646
System Tray (#743)
* Allow tokio on gtk thread

* Basic notifier host implementation

* Implement systray widget

* Use dbusmenu-gtk3

* Update flake.nix

* US spelling of license

* Fix possible TOCTOU

* Change how hosts are started

* Add watcher

* Bunch of refactor

* Handle errors better

* Refactor service parsing

* Avoid duplicate dbus connections

* Fix watcher producing bad items

* Handle zbus::Error::NameTaken

* Refactor icon loading & don't panic on zoom

* Implement pixbuf icons

Co-authored-by: Bojan Nemčić <bnemcic@gmail.com>

* Don't panic on icon/menu error

* Improve icon error handling to make discord work

* Update comments

* Big refactor into actor model

* Reword error messages

* Remove redundant watcher_on function

* Big icon handling refactor

* Don't unnecessarily wrap StatusNotifierItem

* cargo fmt

* Documentation

* Avoid registering to StatusNotifierWatcher multiple times

* None theme means default theme

* Add dbus logging

* Add libdbusmenu-gtk3 dependency to docs

* Some code tidying

* Make Item more clearer

* Make clippy happy

* Systray widget improvements

* Remove unwraps from dbus state

* Temporarily add libdbusmenu-gtk3 to flake buildInputs

* Fix blurry tray icon for HiDPI display

* feat: dynamic icons

* fix: don't cache IconPixmap property

this fixes dynamic icons for some icons, e.g. syncthingtray

* fixup! feat: dynamic icons

* Fix unused borrow warning

* Add some documentation to notifier_host

* Rename notifier_host::dbus to more descriptive notifier_host::proxy

* fixup! Rename notifier_host::dbus to more descriptive notifier_host::proxy

* fixup! Merge remote-tracking branch 'upstream/master' into tray-3

* fixup! Merge remote-tracking branch 'upstream/master' into tray-3

* Remove commented out fields of DBusSession

* Refactor host

* Remove git conflict marker

* Various improvements

* Icon documentation

* cargo fmt

* Add dependency to CI

---------

Co-authored-by: Bojan Nemčić <bnemcic@gmail.com>
Co-authored-by: MoetaYuko <loli@yuko.moe>
Co-authored-by: hylo <hylo@posteo.de>
2024-03-30 10:55:01 +01:00
Jacob
f1ec00a1c9
add get_env function to yuck (#779)
* added basic get_env function to yuck

* added get_env to changelog

* added get_env to docs

* changed key to string in doc

* changed suggested code

* credit myself in CHANGELOG.md
2024-03-20 12:45:08 +01:00
Wölfchen
4ce42455a4
fix: fix jq (#1044)
* fix: fix jq

* feat: add basic jq test case
2024-03-16 13:33:12 +01:00
Rayzeq
d96586c209
Completions (#1029)
* Handle `shell-completions` before anything else

* Update CHANGELOG.md
2024-02-20 22:42:09 +01:00
elkowar
387d344690
Release version 0.5.0 2024-02-17 18:21:49 +01:00
elkowar
5b3dabf090
Fix logfiles growing indefinitely (fixes #750, #689, #1000) 2024-02-17 18:03:35 +01:00
elkowar
2656e238ca
Fix wrong values in EWW_NET (fixes #958) 2024-02-17 17:34:58 +01:00
elkowar
3f478b6503
Support generating shell completions 2024-02-17 17:03:55 +01:00
Fabian
9cbbcb96b3
Potential fix for for-loop memory leak (#1010)
* fix for-loop memory leak

* remove additional unsafe call
2024-02-17 16:30:11 +01:00
Zacharie Dubrulle
d497726d7b Add tooltip widget 2024-02-17 16:23:44 +01:00
elkowar
1db7ff3bad
Fix warnings 2024-02-17 15:06:04 +01:00
elkowar
efea88598c
Update lalrpop 2024-02-17 14:46:20 +01:00
elkowar
4385782be4
Update jaq 2024-02-17 14:42:39 +01:00
elkowar
e6817f221b
Update a few dependencies 2024-02-17 14:26:44 +01:00
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