Launchers and .svg/.png icons
jlj2 opened this issue · 1 comments
- Are application launchers possible in lemonbar; in other words, integrating a 'docky'-style section in lemonbar?
- If so, could the lemonbar launcher icons be of types .svg, .png, etc.?
Having searched on the internet re using .svg/.png style icons over font symbols (e.g. Fontawesome) in lemonbar particularly, the only hints I could find were as follows:-
https://forums.bunsenlabs.org/viewtopic.php?id=2463
If possible, could sample code for these launchers please be spelled out? Hopefully, the code would contain a line demonstrating where an .svg/.png file would appear (or even a .desktop file, which contains a reference to a .svg/.png-type icon).
Many thanks in advance!
- yes
- no
What you're looking for is the %{A}
format option. Example:
echo "%{A:xclock:}Clock%{A}" | lemonbar -p
Now, when you click the "Clock" text, lemonbar will print xclock
to stdout
, which enables you to run that by whatever means suit your needs.
Combine that with a font that contains nice icons, like siji and you can create pretty decent results.