Waybar
Waybar copied to clipboard
add tooltip-format field to custom modules (quick launch buttons)
Hello !
As waybar doesn't offer out of the box quick launch buttons, I'm emulating them with custom modules, like:
"custom/librewolf": {
"format": "",
"interval": "once",
"on-click": "librewolf",
},
And then:
modules-left": [..., "custom/librewolf", ...]
This works, but for those not used to the utf-8 awesome font icons, it might be hard to guess what the modules trigger. Currently AFAIK custom modules do not support the "tooltip-format" which other modules do. If supported, that filed could make it really easy to provide a text hint of what's getting triggered by the module. For example:
"custom/librewolf": {
"format": "",
"tooltip-format" "Librewolf Browser"
"interval": "once",
"on-click": "librewolf",
},
Can this hint field be added to custom modules, so by positioning the mouse on the module (quick launch button emulated) a hint of what gets triggered is shown?
I guess there might be other ways to achieve that, but I bet nothing as simple as specifying the hint inline...
Thanks !
Any updates on this one?
Hi. You could get exactly that with:
"custom/librewolf": {
"return-type": "json",
"format": " {} ",
"exec": "printf '{\"text\": \"\", \"tooltip\": \"Librewolf Browser\"}'",
"interval": "once",
"on-click": "librewolf",
},
Salut!
@joesri you were right, that works just as you mentioned... Many thanks !
That said, it's sort of not intuitive to get there, hehe. Re-reading the custom module doc, now I can get sense of it, but without your example no way... Actually it'd be cleaner not needing exec at all, so I'm not closing this, since I believe if not needing exec it should not be forced at all, and still be consistent with other modules...