How harsha20599/orbit works
Orbit turns CMF Buds Pro 2 dial input into normalized gestures, routes them through a wheel/tool engine, and performs selected actions through desktop or Android platform capabilities. The README documents tools and settings beyond the sampled excerpts; those are represented at subsystem level where implementation details were not shown. Edges are limited to excerpted calls, SOURCE INDEX references, or documented behavior.
Main entry points: app.py Desktop launcher · engine.py Gesture engine · OrbitMediaService.kt Media and volume service · Engine.kt Android gesture engine
Components 26
Runtime orchestration
- Desktop launcher
orbit/app.py
Gesture and tools
- Dial events
orbit/core/events.py - Gesture engine
orbit/core/engine.py - Dial tools
orbit/core/tools.py - Gesture actions
orbit/core/actions.py - Spin tracking
orbit/core/motion.py - Volume dial
orbit/core/volume_dial.py - Android gesture engine
android/app/src/main/kotlin/app/orbit/dial/core/Engine.kt
Desktop app
- Desktop input sources
orbit/platform - Desktop actions
orbit/platform - Wheel and HUD
orbit/ui/qtui.py
Android app
- Setup and customize
android/app/src/main/kotlin/app/orbit/dial/MainActivity.kt - Wheel customization
android/app/src/main/kotlin/app/orbit/dial/CustomizeScreen.kt - Android settings store
android/app/src/main/kotlin/app/orbit/dial/SettingsStore.kt - Event and rotation hub
android/app/src/main/kotlin/app/orbit/dial/Orbit.kt - Media and volume service
android/app/src/main/kotlin/app/orbit/dial/OrbitMediaService.kt - Accessibility engine host
android/app/src/main/kotlin/app/orbit/dial/OrbitAccessibilityService.kt - Wheel and HUD overlay
android/app/src/main/kotlin/app/orbit/dial/OverlayController.kt - Android tool actions
android/app/src/main/kotlin/app/orbit/dial/core/Tools.kt - Media notifications
android/app/src/main/kotlin/app/orbit/dial/OrbitNotificationListener.kt
Configuration
- Settings window
orbit/ui/settings_window.py - Runtime configuration
orbit/core/config.py - Saved preferences
orbit/core/settings.py
Other components
- User
- CMF dial
- Host operating system
Connections 30
- User → CMF dial: turns and presses
- CMF dial → Desktop input sources: sends dial input
- Desktop launcher → Runtime configuration: loads configuration
orbit/app.py - Desktop launcher → Desktop input sources: starts sources
orbit/app.py - Desktop input sources → Dial events: normalizes input
orbit/platform/base.py - Desktop launcher → Gesture engine: creates engine
orbit/app.py - Dial events → Gesture engine: feeds events
orbit/core/events.py - Gesture engine → Dial tools: builds and dispatches
orbit/core/engine.py - Gesture engine → Gesture actions: dispatches gestures
orbit/core/engine.py - Gesture engine → Spin tracking: tracks spin
orbit/core/engine.py - Dial tools → Desktop actions: requests host actions
orbit/core/tools.py - Desktop launcher → Wheel and HUD: wires UI
orbit/app.py - Desktop launcher → Desktop actions: creates output
orbit/app.py - Desktop actions → Host operating system: performs actions
- Desktop launcher → Settings window: opens settings
orbit/app.py - Settings window → Saved preferences: reads and writes
orbit/ui/settings_window.py - Runtime configuration → Dial tools: defines tool setup
orbit/core/config.py - User → Setup and customize: configures app
- Setup and customize → Wheel customization: opens customize
android/app/src/main/kotlin/app/orbit/dial/MainActivity.kt - Wheel customization → Android settings store: uses settings
android/app/src/main/kotlin/app/orbit/dial/CustomizeScreen.kt - CMF dial → Media and volume service: sends dial controls
- Media and volume service → Event and rotation hub: emits events
android/app/src/main/kotlin/app/orbit/dial/OrbitMediaService.kt - Accessibility engine host → Event and rotation hub: collects events
android/app/src/main/kotlin/app/orbit/dial/OrbitAccessibilityService.kt - Accessibility engine host → Android gesture engine: handles events
android/app/src/main/kotlin/app/orbit/dial/OrbitAccessibilityService.kt - Android gesture engine → Android tool actions: dispatches tool actions
- Android gesture engine → Wheel and HUD overlay: updates wheel and HUD
android/app/src/main/kotlin/app/orbit/dial/OrbitAccessibilityService.kt - Media and volume service → Event and rotation hub: attaches rotation control
android/app/src/main/kotlin/app/orbit/dial/OrbitMediaService.kt - Media notifications → Accessibility engine host: supports media control
android/app/src/main/kotlin/app/orbit/dial/OrbitAccessibilityService.kt - Android tool actions → Host operating system: performs device actions
- Setup and customize → Media and volume service: starts service
android/app/src/main/kotlin/app/orbit/dial/MainActivity.kt