-
-
Notifications
You must be signed in to change notification settings - Fork 769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] Custom format replacements in custom modules #432
Comments
It'll be possible once #404 get finished :) |
OK. I will be waiting for this update then 😄 |
Did this happen? I just spent a day trying to output my own json fields but alas... Now I feel a bit silly as it doesnt seem to be supported ;) LOL #1118 https://github.com/rileyrg/linux-init/blob/master/directories/bin/sway/waybar-ip-info-json |
I don't think extending It would be nice to be able to pass more fields from custom modules though. |
Formatting in the external helper is exactly what I wanted to avoid and indeed previous comments in the thread agreed . Certainly it seemed (lol!) obvious to me that adding in {fields} would just work if I returned them in json object. That said, yes, I can separate the json object collection and the formatting into different scripts. Anyway, I just format in the help now as you say. cheers! |
I'm currently writing a custom module to monitor free space on my SSD. However, custom modules that return a JSON can only return a
text
field containing already formatted text. I would like to return different values (free space, used space, total space, usage) and let the format be specified in my waybarconfig
file.Here is an example of what I would like to return with my module:
And I would like to define the format this way in my
config
file:"format": "{mount}: {used}G/{total}G"
That would make custom modules better by dissociating data and format.
The text was updated successfully, but these errors were encountered: