[GH-ISSUE #1258] Generic DBus listener module #6002

Open
opened 2026-05-23 01:54:26 +01:00 by JakeStanger · 2 comments
Owner

Originally created by @bandithedoge on GitHub (Nov 24, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1258

Is your feature request related to a problem? Please describe.
Since DBus signals are widely used as an efficient way to track the status of various system components, I think a module that simply listens to a specified property would make it easier to avoid writing shell scripts for things like UPower and iwd.

Describe the solution you'd like
A custom module that listens to DBus properties. The value could later be processed by piping it to a specified command or using a Lua function.

Describe alternatives you've considered

Additional context
We already use lgi for the Cairo module, maybe something in the spirit of https://github.com/stefano-m/lua-dbus_proxy could work?

Originally created by @bandithedoge on GitHub (Nov 24, 2025). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1258 **Is your feature request related to a problem? Please describe.** Since DBus signals are widely used as an efficient way to track the status of various system components, I think a module that simply listens to a specified property would make it easier to avoid writing shell scripts for things like UPower and iwd. **Describe the solution you'd like** A custom module that listens to DBus properties. The value could later be processed by piping it to a specified command or using a Lua function. **Describe alternatives you've considered** - https://github.com/alfmep/dbus-tool - some sort of horrible shell scripting with `dbus-monitor` **Additional context** We already use lgi for the Cairo module, maybe something in the spirit of https://github.com/stefano-m/lua-dbus_proxy could work?
Author
Owner

@JakeStanger commented on GitHub (Nov 24, 2025):

This sounds potentially very powerful. There may be a declarative approach that's good enough, but that needs some thought. It could potentially even be an extension of the dynamic string or ironvar system, assuming that doesn't end up too messy.

shell scripts for things like UPower

Just to say - the battery module already hooks into Upower, unless there's something missing from that you'd like?

<!-- gh-comment-id:3572846414 --> @JakeStanger commented on GitHub (Nov 24, 2025): This sounds potentially very powerful. There may be a declarative approach that's good enough, but that needs some thought. It could potentially even be an extension of the dynamic string or ironvar system, assuming that doesn't end up too messy. > shell scripts for things like UPower Just to say - the `battery` module already hooks into `Upower`, unless there's something missing from that you'd like?
Author
Owner

@bandithedoge commented on GitHub (Nov 25, 2025):

Just to say - the battery module already hooks into Upower, unless there's something missing from that you'd like?

I know, I implemented it myself with a shell script anyway because I wanted custom text icons.

<!-- gh-comment-id:3574561896 --> @bandithedoge commented on GitHub (Nov 25, 2025): > Just to say - the `battery` module already hooks into `Upower`, unless there's something missing from that you'd like? I know, I implemented it myself with a shell script anyway because I wanted custom text icons.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#6002
No description provided.