Skip to content

Commit 1fb3786

Browse files
authored
Merge pull request #14 from unixorn/python-conversion
Python rewrite - Enjoy the 50x speedup!
2 parents aa79bbe + f06996c commit 1fb3786

File tree

6 files changed

+609
-420
lines changed

6 files changed

+609
-420
lines changed

Diff for: Changelog.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Lima Xbar/Swiftbar changelog
2+
3+
## 0.0.1 - 1.0.0
4+
5+
- `bash` proof of concept
6+
7+
## 1.1.1
8+
9+
- Rewrite in Python for speed and maintainability.
10+
- Now have submenus for container and image operations instead of just start/stop the VM
11+
- We send notifications to the Notification Manager

Diff for: Makefile

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
i: lint install
2-
install:
2+
install: format
33
cp lima-plugin ~/Library/Application\ Support/xbar/plugins/lima-plugin.10s
44

55
l: lint
66
lint:
7-
shellcheck lima-plugin
7+
shellcheck lima-plugin
8+
9+
r: requirements
10+
requirements:
11+
poetry export -f requirements.txt --output requirements.txt
12+
13+
f: format
14+
format:
15+
black lima-plugin *.py
16+
17+
t: test
18+
test: format
19+
poetry run ./lima-plugin
20+

Diff for: README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@
2323

2424
![Screen shot of Lima menu with a running vm](https://raw.githubusercontent.com/unixorn/lima-xbar-plugin/main/pix/limactl-screen-shot.png)
2525

26-
This plugin is compatible with [xbar](https://xbarapp.com/) and [SwiftBar](https://github.com/swiftbar/SwiftBar), and lets you start and stop lima VMs from the menubar.
26+
This plugin is compatible with [xbar](https://xbarapp.com/) and [SwiftBar](https://github.com/swiftbar/SwiftBar), and provides a menubar app that creates submenus for each Lima VM on your machine. For each VM, you can start/stop the VM, stop (and start or remove stopped containers) containers, and pull or remove images from the VM.
2727

2828
## Installation
2929

3030
Copy `lima-plugin` to `~/Library/Application\ Support/xbar/plugins/lima-plugin.30s`, or run `make install`
3131
### Dependencies
3232

33-
- [xbar](https://xbarapp.com/) - Allows you to make custom menubar apps with just scripts
34-
35-
- [jq](https://stedolan.github.io/jq/) - `brew install jq` - Used to parse the output of `limactl`
33+
- [xbar](https://xbarapp.com/) or [SwiftBar](https://github.com/swiftbar/SwiftBar) - Both allow you to make custom menubar apps with simple scripts.

0 commit comments

Comments
 (0)