1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-18 07:11:04 +02:00
Commit graph

27 commits

Author SHA1 Message Date
c7b6ee8bc0
refactor: add dead_code allow to fix build warning 2024-03-29 00:29:27 +00:00
6fe9c54134
fix(clipboard): unable to paste large images into xwayland
Thanks to a nightly clippy warning which found I wasn't using `file.write` correctly.

Fixes #86.
2024-02-18 00:41:16 +00:00
aaef3bf96c
refactor: fix new strict clippy warnings 2024-02-01 22:39:43 +00:00
18b47844f9
refactor(wayland): simplify task spawning code 2024-01-14 15:42:29 +00:00
e0dc5e104a
refactor(wayland): remove unused request type 2024-01-14 01:34:49 +00:00
thmasq
ddf91b18cc build: add focused and launcher feature flags 2024-01-13 22:08:31 -03:00
8371a92204
feat: load bars on monitor when it connects
Finally, Ironbar will respond to events of monitors being (dis)connected, and will create bars when a monitor connects.

This means at last - resolves #291

yaay
2024-01-13 17:20:09 +00:00
c702f6fffa
refactor: major client code changes
This does away with `lazy_static` singletons for all the clients, instead putting them all inside a `Clients` struct on the `Ironbar` struct.

Client code has been refactored in places to accommodate this, and module code has been updated to get the clients the new way.

The Wayland client has been re-written from the ground up to remove a lot of the needless complications, provide a nicer interface and reduce some duplicate data.

The MPD music client has been overhauled to use the `mpd_utils` crate, which simplifies the code within Ironbar and should offer more robustness and better recovery when connection is lost to the server.

The launcher module in particular has been affected by the refactor.
2024-01-09 23:33:07 +00:00
bea442ed96
refactor: update gtk/glib, remove glib channels
This is a major refactor which updates GTK, GLib and GTK Layer Shell to their latest versions.

GLib channels, previously used for receiving events on the GLib Main Context thread have been deprecated and a new method for running Futures on the main thread has been added instead. This commit also replaces all the deprecated code with this.

As part of the above, a bug was uncovered related to creating the GLib main context inside the Tokio runtime. Spawning of Tokio tasks has been refactored to fix this.
2023-12-18 22:09:21 +00:00
ed5a16237d
refactor: update wayland crates to latest versions 2023-12-11 22:01:50 +00:00
b2fa19ab6c
refactor: begin restructuring core code to better encapsulate
This is a first pass towards trying to structure things a bit better, with data generally encapsulated under a single hierarchical tree, rather than lots of globals all over the place. Lots of work is still required.

The plan is that with this and some more work, #291 should become a lot easier to sort.
2023-12-08 22:39:27 +00:00
08e354e019
refactor: fix new clippy warnings 2023-10-19 21:12:19 +01:00
4e67b73a83
refactor(wlr data control): update to new nix epoll bindings 2023-09-05 22:43:29 +01:00
1b476eb9f9
chore(wayland): downgrade some logs from debug to trace 2023-08-16 20:27:24 +01:00
06251e293e
refactor: fix new pedantic clippy warnings 2023-07-16 20:17:32 +01:00
7016f7f79e
refactor: use new smart pointer macros throughout codebase 2023-06-29 23:16:31 +01:00
cc181a8b6d
refactor: fix new clippy warnings 2023-06-29 16:57:47 +01:00
a5ecb363fd
fix: popups occasionally getting jumbled with multiple bars 2023-05-29 14:01:42 +01:00
e1abadcf39
fix(clipboard): copying large images filling write pipe
Fixes partially #86
2023-05-05 22:30:16 +01:00
7f46cb4976
refactor(wayland): update to 0.30.0
This is pretty much a rewrite of the Wayland client code for `wayland-client` and `wayland-protocols` v0.30.0, and `smithay-client-toolkit` v0.17.0
2023-05-04 20:07:42 +01:00
83c5dceaa7
chore: clean up println calls 2023-03-04 23:13:22 +00:00
575d6cc30f
feat: new clipboard manager module 2023-02-26 13:42:53 +00:00
eb30105fc2
style: fix 1.67 clippy warnings 2023-01-28 14:40:31 +00:00
5e21cbcca6
refactor: macros to reduce repeated code 2022-12-11 22:45:52 +00:00
9d5049dde0
refactor: standardise error messages 2022-12-11 21:31:45 +00:00
2c1b2924d4
refactor: move most of the horrible add_module macro content into proper functions 2022-12-04 23:23:22 +00:00
4662f60ac5
refactor: move various clients to own folder 2022-11-06 23:38:51 +00:00