ironbar icon indicating copy to clipboard operation
ironbar copied to clipboard

[Volume] Dynamic format string / change tokens on the fly

Open judexgauss opened this issue 8 months ago • 1 comments

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.

judexgauss avatar Mar 09 '25 14:03 judexgauss

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

JakeStanger avatar Mar 10 '25 17:03 JakeStanger