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

93 commits

Author SHA1 Message Date
fa6f27d4b9
fix(workspaces): rewrite module to fix several small issues
Rewrites the module code to be better structured, in a similar pattern to the launcher. The code is now more robust and more maintainable, yay!

Fixes #705

Fixes an issue with moving favourite workspaces.

Fixes an issue with workspace visible state being incorrect.

Fixes an issue where the `inactive` class looked at hidden instead of closed favourites.
2024-12-28 13:38:03 +00:00
8cdbe7e083
refactor(hyprland): improve logging 2024-12-28 12:58:29 +00:00
42e18da126
chore: comment out doc comment for unused func 2024-12-28 12:58:05 +00:00
ccfe73f6a7
feat: libinput keys module
Adds a new module which shows the status of toggle mod keys (capslock, num lock, scroll lock).

Resolves #700
2024-12-27 19:44:25 +00:00
quietvoid
9f7c3918c4
feat(sway): support workspace rename events (#799)
And reorder based on label with fallback to widget name
2024-12-05 12:04:22 +00:00
pachliopta
64b953ce5e
feat(launcher): add option to minimize window if focused 2024-11-24 21:46:45 +00:00
9c13e534b7
Merge pull request #735 from Rodrigodd/feat/urgent
feat: add `.urgent` workspace css class
2024-11-24 21:40:52 +00:00
55c0940e1d
fix(tray): update system-tray dep to bring in a whole load of fixes 2024-11-08 01:35:04 +00:00
Rodrigo Batista de Moraes
afe534ccd9 feat: add .urgent workspace css class 2024-09-25 22:44:12 -03:00
04f45ccae1
refactor: fix some pedantic clippy warnings 2024-08-14 21:26:40 +01:00
d8b68fd378
fix(launcher): showing xwayland menus and tooltips
Fixes #606
2024-08-14 21:05:26 +01:00
2aa55d8d66
fix(popup): incorrect pos when resolution changes
Popups will now instantly reposition themselves to be correctly placed on resolution change. This includes orientation and scale changes.

Fixes #610
2024-08-14 20:46:40 +01:00
189975791f
refactor(mpris): better logging, avoid panic on dbus error 2024-08-10 13:45:17 +01:00
474e1fe364
fix(upower): avoid panic on client init error 2024-08-09 23:16:00 +01:00
Rodrigo Batista de Moraes
e307e15dc4
feat: new sway-mode module (#671)
* feat: add sway-mode module

* refactor: Avoid making multiple connections to SwayIPC

Now `sway::Client` is store in `ironbar.clients`, and allow dynamically
registering event listeners, instead of hardcoding events for Workspace
updates.

Remove the use of `swayipc::Connection` from `sway-mode` module, and
replace it with the new event listener system.

#671
2024-08-05 13:22:01 +01:00
f819aec259
fix(notifications): client broken by recent refactor
Fixes #674
2024-08-04 13:46:12 +01:00
6d0fe4c8ac
feat: add networkmanager module 2024-08-04 12:55:12 +01:00
fb6ae42f3b
fix: crash due to clipboard fd incorrectly closed 2024-08-04 11:50:22 +01:00
51df2b766b
build: fix clippy warning 2024-06-20 20:59:08 +01:00
7e04e30171
fix(wayland): exit on event dispatch error
This should hopefully resolve log spamming issues.
2024-06-20 20:58:56 +01:00
dbd385d225
fix(launcher): apps with multiple windows stay focused when window closed
Resolves #618
2024-06-03 21:26:11 +01:00
c876904bda
refactor: update nix crate to latest version
Fixes #573
2024-05-18 21:58:32 +01:00
4a37429634
fix(launcher): ghost windows in reload
Fixes #585
2024-05-15 19:54:55 +01:00
04a694e2ad refactor: fix latest clippy warnings 2024-05-11 20:56:18 +01:00
c45ea02a7d fix(workspaces): regression due to #572
Fixes #574
2024-05-09 17:25:08 +01:00
5e7f576841 fix(workspaces): add support for hyprland rename event
Renaming workspaces on Hyprland will now work as expected.

This also refactors the workspace code to depend on IDs rather than
names which should make it more robust against the same sort of issue
in future.

Fixes #469
2024-05-07 09:42:55 +01:00
Nadia
f7a39ddecc
build: update hyprland-rs to 0.4.0-alpha.1
(#565) 

this does have some breaking changes in it so it could have other
side effects.
2024-05-03 21:39:09 +01:00
b0a05b7cda
feat: new cairo module
Resolves #105

Co-authored-by: A-Cloud-Ninja <5809177+A-Cloud-Ninja@users.noreply.github.com>
2024-04-17 20:35:35 +01:00
26ffed7b40
build: remove some unused features/deps 2024-04-02 20:12:09 +01:00
9245188af7
refactor: better error handling for client initialization 2024-04-01 16:34:25 +01:00
004ea76da5
refactor(tray): complete client rewrite 2024-03-29 00:31:20 +00:00
c7b6ee8bc0
refactor: add dead_code allow to fix build warning 2024-03-29 00:29:27 +00:00
slowsage
180f8748bb fix(music): Handle NoActivePlayer (playerctld) , NoReply, NoMethod, ServiceUnknown DBus errors in mpris. 2024-03-18 19:28:30 -04:00
7742a46578
feat: swaync notifications module
Adds a new module which connects to SwayNC to display information from the notifications deamon.

Resolves #7
2024-03-04 20:33:53 +00:00
660dc81e7d
chore: refactors to volume pr #460 i forgot
whoops
2024-03-04 20:21:26 +00:00
a70956bb3b
feat: add new volume module 2024-03-04 19:53:02 +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
4934f2c409
Merge pull request #433 from JakeStanger/refactor/clippy
refactor: fix new strict clippy warnings
2024-02-01 22:50:58 +00:00
aaef3bf96c
refactor: fix new strict clippy warnings 2024-02-01 22:39:43 +00:00
8016ec256d
fix(tray): crash caused by excess updates
Some icons seem to absolutely spam updates in some circumstances. Increasing the channel size by 4x seems sufficient to prevent this.
2024-01-27 00:35:16 +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
967801dc32
refactor(workspaces): avoid sending unknown update info 2023-12-31 00:50:41 +00:00
e847a84c21
refactor: fix casting based clippy warnings 2023-12-18 22:09:21 +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