How hoangtl2/vgn-hub-linux works
VGN Hub Linux configures supported VGN mice through either a GTK/WebKit desktop interface or a CLI, with commands translated into the vgn-ry-mouse protocol and Linux hidraw feature reports. The README also highlights device discovery, DPI and performance tuning, button bindings and macros, wallpaper customization, profiles, backup/restore, and Waybar battery output. Several core files are excerpted; README feature claims preserve major capabilities, while unshown relationships are omitted rather than inferred.
Main entry points: gui.py GTK GUI host · ry_mouse.py RY mouse protocol · transport.py HID discovery and transport · cli.py CLI commands
Components 13
User interfaces
- CLI commands
vgn_hub/cli.py - GTK GUI host
vgn_hub/gui.py - Web UI
vgn_hub/web/app.js
Device access
- Device registry
vgn_hub/registry.py - HID discovery and transport
vgn_hub/transport.py
Mouse protocol and state
- Bindings and keycodes
vgn_hub/keycodes.py - Protocol factory
vgn_hub/protocols/__init__.py - RY mouse protocol
vgn_hub/protocols/ry_mouse.py - Mouse state and backup
vgn_hub/protocols/base.py
UI settings
- UI configuration
vgn_hub/config.py
Other components
- Mouse user
- VGN mouse or receiver
- Waybar
Connections 19
- Mouse user → CLI commands: runs commands
README.md - Mouse user → GTK GUI host: opens GUI
README.md - Web UI → GTK GUI host: sends actions
vgn_hub/web/app.js - CLI commands → Protocol factory: creates client
vgn_hub/cli.py - CLI commands → HID discovery and transport: opens transport
vgn_hub/cli.py - CLI commands → GTK GUI host: launches GUI
vgn_hub/cli.py - GTK GUI host → HID discovery and transport: discovers devices
vgn_hub/gui.py - GTK GUI host → Protocol factory: creates client
vgn_hub/gui.py - GTK GUI host → RY mouse protocol: manages device
vgn_hub/gui.py - GTK GUI host → UI configuration: loads settings
vgn_hub/gui.py - HID discovery and transport → Device registry: matches devices
vgn_hub/transport.py - Protocol factory → RY mouse protocol: selects implementation
vgn_hub/protocols/__init__.py - RY mouse protocol → HID discovery and transport: sends reports
vgn_hub/protocols/ry_mouse.py - RY mouse protocol → Device registry: reads capabilities
vgn_hub/protocols/ry_mouse.py - RY mouse protocol → Bindings and keycodes: encodes bindings
vgn_hub/protocols/ry_mouse.py - RY mouse protocol → Mouse state and backup: builds state
vgn_hub/protocols/ry_mouse.py - HID discovery and transport → VGN mouse or receiver: exchanges reports
README.md - Mouse state and backup → Waybar: formats battery
vgn_hub/protocols/base.py - Web UI → Mouse user: shows controls