Skip to content
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

Get a better icon for the menubar #22

Open
unixorn opened this issue Oct 3, 2021 · 6 comments
Open

Get a better icon for the menubar #22

unixorn opened this issue Oct 3, 2021 · 6 comments
Assignees
Labels
enhancement New feature or request hacktoberfest Suitable for a hacktoberfest contribution UI User interface enhancements

Comments

@unixorn
Copy link
Owner

unixorn commented Oct 3, 2021

This could use a proper icon for the menubar.

@unixorn unixorn added enhancement New feature or request UI User interface enhancements hacktoberfest Suitable for a hacktoberfest contribution labels Oct 3, 2021
@pattimcletchie
Copy link

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

@unixorn
Copy link
Owner Author

unixorn commented Oct 4, 2021

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.

@pattimcletchie
Copy link

@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.

@unixorn
Copy link
Owner Author

unixorn commented Oct 4, 2021

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/

@exculibar
Copy link
Contributor

exculibar commented Apr 21, 2024

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

@unixorn
Copy link
Owner Author

unixorn commented Apr 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest Suitable for a hacktoberfest contribution UI User interface enhancements
Projects
None yet
Development

No branches or pull requests

3 participants