[GH-ISSUE #885] [Volume] Dynamic format string / change tokens on the fly #4486

Open
opened 2026-05-23 00:53:51 +01:00 by JakeStanger · 1 comment
Owner

Originally created by @judexgauss on GitHub (Mar 9, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/885

I want to change {name} of module volume to icons depending on name of output device. For example: if current output device has {name} "Some device name", than it'll be headphone's icon. If it has {name} "Another device name" - then speaker's icon.

As far as I know, there is no way to do this via script. Correct me if I'm wrong.
Anyway, how can I achieve this?

P.S. Nice project btw, configuring is much more user-friendly comparing to waybar. Thanks for your work.

Originally created by @judexgauss on GitHub (Mar 9, 2025). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/885 I want to change `{name}` of module `volume` to icons depending on name of output device. For example: if current output device has `{name}` "Some device name", than it'll be headphone's icon. If it has `{name}` "Another device name" - then speaker's icon. As far as I know, there is no way to do this via script. Correct me if I'm wrong. Anyway, how can I achieve this? P.S. Nice project btw, configuring is much more user-friendly comparing to waybar. Thanks for your work.
Author
Owner

@JakeStanger commented on GitHub (Mar 10, 2025):

Currently this is not possible, although it should be possible to add support without much difficulty:

  • The format string can be converted to a dynamic string to allow for custom scripts and ironvars
  • Internal values can be exposed as ironvars in the same manner as sysinfo
<!-- gh-comment-id:2711329122 --> @JakeStanger commented on GitHub (Mar 10, 2025): Currently this is not possible, although it should be possible to add support without much difficulty: - The format string can be converted to a [dynamic string](https://github.com/JakeStanger/ironbar/wiki/dynamic-values#dynamic-string) to allow for custom scripts and ironvars - Internal values can be exposed as ironvars in the same manner as `sysinfo`
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#4486
No description provided.