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

124 commits

Author SHA1 Message Date
ca524f19f6
refactor: fix some strict clippy warnings 2025-05-25 12:14:24 +01:00
09ba3816d6
refactor: couple of tiny changes 2025-05-19 15:33:08 +01:00
375ceb81ce
fix(workspaces): reload broken on niri
Fixes #930
Fixes #981
2025-05-18 19:54:42 +01:00
f929aef2d9
refactor: replace channel macros with ext trait methods 2025-05-18 15:22:58 +01:00
999d173eff
build: fix issues with compositor feature flags 2025-05-18 14:29:40 +01:00
c6f3af4142
refactor: improvements to feature flags 2025-05-16 22:33:54 +01:00
1b6aa10423
refactor: update hyprland-rs, remove expects from hyprland client code
Fixes #960
2025-05-16 22:29:25 +01:00
postsolar
040e7e64ee
fix(mpris): use set_position instead of seek (#978) 2025-05-12 16:06:29 +01:00
Rodrigodd
638f2a20d2 refactor: avoid explicity cast with long type
Aparently Rust doesn't implicitly cast a `Result<Arc<T>>` to
`Result<Arc<dyn T>>`, so the `Result` was being mapped with a explicity
cast.

But unwrapping the `Result` with a `?` and then wrapping it back into
`Ok` make the implicit cast work. This avoid typing the entire type,
which was breaking the code in multiple lines.
2025-04-21 19:13:59 -03:00
Rodrigodd
5a5b110c7a feat: rename sway_mode to bindmode and add Hyprland support
Signed-off-by: Rodrigodd <rodrigobatsmoraes@hotmail.com>
2025-04-21 19:13:59 -03:00
963a450ff5
fix(wayland): panicking on compositors without protocol support
This allows Ironbar to run on a wider range of compositors, where support for the `wlr_foreign_toplevel` protocol used by focused/launcher, and the `wlr_data_control_device` protocol used by clipboard is missing
2025-04-21 20:11:47 +01:00
Rodrigo Batista de Moraes
cff6b1fc83
build: fix compilation for many feature combinations (#932)
* Fix compilation for many feature combinations

* fix: keep Mpris as the default music player type

* fix: update futures-lite comment

* fix: remove redundant "clap" feature dependency from "cli"

* fix: don't make IPC a dependency of sysinfo module

* refactor: move serde_json feature to "shared" section

* refactor: avoid cfgs inside listen_workspace_events

by splitting list_keyboards_events out of it, which manages its own
connection to the Hyprland IPC socket.

* refactor: sort multiline cfg any's

* Revert "refactor: avoid cfgs inside listen_workspace_events"

This reverts commit 1b4202ed80c9483c609ada8c4436e0fec26a9eef.

* refactor: split listen_workspace_events in more functions

* style: fix broken identation

Not sure why rustfmt didn't catch this.
2025-04-16 22:43:14 +01:00
ff9ba7b5f5
fix(clipboard): failing to paste in some applications
Fixed by ensuring the internal mime type is always last
2025-04-04 19:32:32 +01:00
5bb1c88c12
refactor(clipboard): switch from nix to rustix 2025-04-01 22:21:02 +01:00
a0231559d0
refactor(keys): switch to colpetto
Switches from the `input` crate to new async `colpetto`
2025-04-01 22:20:46 +01:00
bfb9f04afd
build: fix even more coupling issues with keyboard/workspace/sway
damn it
2025-03-28 20:51:26 +00:00
557ef4c898
build: fix more coupling issues with keyboard/workspace/sway 2025-03-28 20:47:26 +00:00
MapoMagpie
3320cf27b2
fix(workspaces): niri workspaces not respecting added sort (#911)
* refactor: sort niri workspaces before init

* chore: comment for ordered_niri_workspace changing
2025-03-24 14:16:23 +00:00
a4eb149816
build: decouple workspace and keyboard modules
Fixes #862
2025-03-24 12:22:02 +00:00
76ca6115a3
chore: add trace logging to volume module 2025-03-24 11:51:26 +00:00
202c19efd4
refactor: update to rust 2024, fix strict clippy warnings 2025-03-03 21:28:29 +00:00
b83f26cb1a
feat(sysinfo): expose values as ironvars 2025-02-23 16:51:30 +00:00
Anant Sharma
02a8ddabf0
feat(workspaces): niri support
Co-authored-by: Jake Stanger <mail@jstanger.dev>
2025-02-21 16:12:05 +00:00
quietvoid
551e1ce691
fix(keyboard): panic when layout update channel lags behind (#869)
Fixes #866
2025-02-16 23:01:21 +00:00
f39c4c430e
refactor: fix clippy warnings 2025-02-15 23:18:57 +00:00
01de0ac6f5
feat(sysinfo): overhaul to add aggregate/unit/formatting support
This completely reworks the sysinfo module to add support for aggregate functions, better support for working with individual devices, the ability to specify units, and some string formatting support.

Several new tokens have also been added, and performance should be marginally improved.

BREAKING CHANGE: Use of the `sys_info` module in your config will need to be updated to use the new token format. See the wiki page for more info.
2025-02-15 22:58:17 +00:00
63f5954837
refactor: upgrade to zbus v5
Also drops the deprecated `upower-dbus` crate
2025-02-08 01:56:01 +00:00
Merlijn
75375aa341
fix(clipboard): possible deadlock when copying (#863)
* Change clipboard calloop event loop with blocking read to tokio async readers.

Co-authored-by: Ridan Vandenbergh <ridanvandenbergh@gmail.com>

* cargo fmt

---------

Co-authored-by: Ridan Vandenbergh <ridanvandenbergh@gmail.com>
2025-02-06 16:29:33 +00:00
kuzy000
03e6f10141
feat(keyboard): ability to display and switch kb layout (#836)
This extends the existing `keys` module to be able to show the current keyboard layout, and cycle between layouts (using the `next` command) by clicking. The `keys` module has been renamed to `keyboard` to more accurately reflect its extended featureset.
2025-02-03 21:19:30 +00:00
e0bae2c0af
fix(keys): high cpu usage
Fixes #834
2025-01-06 22:13:57 +00:00
5136637752
refactor: fix some strict clippy warnings 2024-12-29 00:40:12 +00:00
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