This repository was archived by the owner on Aug 13, 2026. It is now read-only.
Repository navigation
Stable source release for the cross-platform usage widget.
Supported platforms
- Windows 10/11 with Python 3.8 or 3.12 and Tk
- macOS 12+ with Python 3.8+ (Python 3.12 + Tk recommended); optional
pip install pyobjc-framework-Cocoafor frosted glass (auto-falls back to translucent) - Packaging smoke verified on GitHub Actions Windows + macOS
What's new in 1.7.0
- Cross-platform support: font auto-adaptation (PingFang SC / SF Pro on macOS), macOS frosted glass via optional pyobjc, borderless floating window (NSPanel) interaction
- Database path auto-resolution: manual setting → CC Switch custom config dir → default
~/.cc-switch/cc-switch.db - macOS autostart (
setup_autostart.sh, LaunchAgent) and packaging (publish_mac.sh, PyInstaller .app) - Settings window: database path picker
- CI: macOS verify + packaging smoke jobs added; Windows jobs unchanged
Install and verify
- Clone this tag and run
python -m pip install -r requirements.txt. - Run
python ccswitch_widget.py. - Optionally run
setup_autostart.ps1(Windows) orsetup_autostart.sh(macOS) for autostart. - Verify with
python -m unittest discover -s tests -vandpython -m py_compile ccswitch_widget.py.
Clean-checkout CI: https://github.com/Justin-Ju-0413/ccswitch-usage-widget/actions/runs/31007424612
Source commit: dd19bbc9a36658dec715d344f2693efced4c23d9
Limits and rollback
publish.ps1/publish_mac.shperform local verification/package/checksum only and do not publish to GitHub.- This is source-only; no EXE/APP is attached.
- To roll back, run the previous tagged source checkout (
v1.6.3); settings and the CC Switch database are not touched. - Real-device verified: macOS frosted glass + floating panel confirmed on Tk 9 + pyobjc.