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

484 commits

Author SHA1 Message Date
1d29d61628
fix: exit 0 on ipc connection error
Will now return code 3

Fixes #868
2025-02-15 23:16:05 +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
49ab7e0c7b
Merge pull request #837 from BowDown097/master
feat: icon overrides
2025-02-15 22:43:46 +00:00
BowDown097
c2beda852d refactor: ensure one copy of icon_overrides 2025-02-08 04:45:35 -08: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
BowDown097
2fd49e0f3a refactor: address requested changes (3) 2025-02-05 09:11:28 -08:00
BowDown097
d5e4e08863 refactor: address requested changes (2) 2025-02-05 07:40:54 -08:00
BowDown097
40d449e011 refactor: address requested changes 2025-02-04 09:48:10 -08:00
5e7e741842
feat(volume): add pango support to button
Resolves #852
2025-02-03 22:48:25 +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
BowDown097
d1b4af4710 refactor: make icon overrides bar-level and apply to focused module 2025-01-16 21:39:06 -08:00
BowDown097
87c680122b feat(launcher): icon overrides 2025-01-10 20:28:05 -08:00
e0bae2c0af
fix(keys): high cpu usage
Fixes #834
2025-01-06 22:13:57 +00:00
BowDown097
59b5ddcc69 refactor(clock): move justify above common 2025-01-02 07:01:28 -08:00
BowDown097
9cb1dfc1b1 refactor: enum/struct formatting 2025-01-01 12:27:33 -08:00
BowDown097
708118d266 feat: justify property for clock and custom label 2025-01-01 12:16:04 -08:00
5136637752
refactor: fix some strict clippy warnings 2024-12-29 00:40:12 +00:00
Donovan Glover
4381fd505d
feat: add shell completions
Auto-generated with clap.
2024-12-29 00:19:02 +00:00
03136e7c70
feat(workspaces): new sorting options
Renames existing `alphanumeric` sorting method to `label` and adds a new method called `name` which uses the real workspace name, akin to behaviour before #799.

BREAKING CHANGE: The workspace `sort` config option valid values have changed. Where `alphanumeric` is explicitly set, this will need changing to one of `label` or `name`.
2024-12-28 14:01:30 +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
BowDown097
7f71a383c4
feat(launcher): open new window on middle-click 2024-12-15 07:00:42 -08: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
a181d4e257 fix(networkmanager, upower): widget not vertical on left/right bars 2024-11-25 11:12:23 +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
da13b9d500
feat(launcher): truncate and truncate_popup config options 2024-11-24 21:35:38 +00:00
8b05ed526d
refactor: move label truncate function to ext trait
 Conflicts:
	src/gtk_helpers.rs
	src/modules/music/mod.rs
2024-11-24 21:35:31 +00:00
cc6f21ed68
refactor: take reference into image provider 2024-11-24 21:30:54 +00:00
df4bfc83d0
feat(truncate): explicit off mode 2024-11-24 21:30:54 +00:00
230dd8b13b
fix(workspaces): clicking currently focused workspace attempts to focus it
Resolves #731
2024-11-19 22:23:57 +00:00
Christian Meissl
ce48fc9d0d
fix(tray): prevent widget buttons from piling up (#788)
each call to set_menu_widget registered a new event handler,
resulting in multiple popups to be created. each popup tried
to issue a grab with the same serial.
prevent this by disconnecting any previously registered handler.
2024-11-19 22:07:52 +00:00
e1f3b1bb72
feat: route gtk logging through tracing
Yay consistent logging, especially now the tray uses a library that likes to vomit warnings
2024-11-18 21:25:57 +00:00
f364bb64fb
fix(tray): tray icons not disappearing on close 2024-11-17 14:47:50 +00:00
5aa9f37fe4
fix(tray): menus not attaching to secondary bars 2024-11-17 14:47:42 +00:00
48dc65f60b
chore(tray): remove unneeded png image code 2024-11-17 14:47:15 +00:00
Ridan Vandenbergh
42e25f5ef2
fix(ipc): support querying against duplicate bar names
It is possible/valid to define multiple bars by the same name by setting `name` on the top-level bar object, but not specifying monitors. This updates IPC to support this scenario.

Allow IPC to act on multiple bars by the same name (#777)
2024-11-16 20:48:12 +00:00
e4e9632caa
fix(tray): menu causing bar to lose focus on sway
BREAKING CHANGE: The `direction` option has been changed to only accept `horizontal` or `vertical`
2024-11-16 20:36:20 +00:00
30de23dc64
refactor(tray): switch over to libdbusmenu-gtk3
Also adds tooltips
2024-11-16 17:35:29 +00:00
05530cf776
fix: regression caused by #652 2024-11-10 17:35:47 +00:00
f1e87830ed
chore: tidy main 2024-11-08 01:40:25 +00:00
cf38c37fe3
refactor(tray): move some debug logging to trace logging 2024-11-08 01:40:25 +00:00
486beff8a5
refactor: put in basic placeholders for menu icon diffs 2024-11-08 01:40:25 +00:00
662ddb6946
feat(tray): image support in menu items 2024-11-08 01:40:24 +00:00
fb1799531b
fix(tray): image updates lag 1 behind 2024-11-08 01:35:35 +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
e53a9067b0
fix(tray): cannot activate with mixed left/right click
Fixes #513
2024-11-05 13:20:34 +00:00