lima-xbar-plugin icon indicating copy to clipboard operation
lima-xbar-plugin copied to clipboard

Get a better icon for the menubar

Open unixorn opened this issue 4 years ago • 6 comments

This could use a proper icon for the menubar.

unixorn avatar Oct 03 '21 20:10 unixorn

@unixorn can you assign this to me? I would like to try and tackle the issue for you.

pattimcletchie avatar Oct 04 '21 01:10 pattimcletchie

Done! Thanks for volunteering.

There are specs for the image at https://github.com/matryer/xbar-plugins/blob/main/CONTRIBUTING.md, I'd like something suitable for use with the image= tag.

It's going to have to fit in the menubar, so it can't be too complicated an image.

unixorn avatar Oct 04 '21 05:10 unixorn

@unixorn thank you for the specs. I plan on working on this tonight (US, central timezone). If I run into any questions I will ping you.

I look forward to contributing.

pattimcletchie avatar Oct 04 '21 15:10 pattimcletchie

Sounds great. Maybe have a red and a green version of the image so I can colorize the menubar icon based on whether there are any running Lima VMs.

Perhaps something inspired by the containerd icon? https://containerd.io/

unixorn avatar Oct 04 '21 23:10 unixorn

Since lima-plugin itself is a python script, we can easily modify its icons.

When you use Swiftbar, you can use sfimage= to set a SF Symbol as the icon. For example, replace menuBarIcon = f"🐋 🏃 | color={RUNNING_VM_COLOR}" with menuBarIcon = f"| sfimage=externaldrive.fill.badge.checkmark".

When using Xbar, use image= to set the base64 value of the custom icon

Attached here is the effect after I modified it 41713680596_ pic 51713680640_ pic

exculibar avatar Apr 21 '24 06:04 exculibar

That looks great - please put in a PR, I'd love to add that to the plugin

unixorn avatar Apr 21 '24 16:04 unixorn