Commit Graph

81 Commits

Author SHA1 Message Date
Mickaël
e7f7046ddd Fix typo in docs 2024-04-06 12:58:05 +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
elkowar
4862db66ef
Fix docs for :monitor list 2024-02-17 16:04:00 +01:00
elkowar
9ca98448cc Switch to stable rust 2024-02-17 13:21:05 +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
Eclipse222
fff40ce1a7
Update configuration.md (#894)
Cleared up the wayland section slightly :)
2023-12-11 11:26:39 +01:00
loqusion
77aeb5464d
docs: fix minor typo (#888) 2023-12-11 11:25:46 +01: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
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