How emrnky/attack-shark-x6 works
Attack Shark X6 is a small Linux mouse-monitoring application. The tray process starts a HID event monitor and, when a supported link is available, a settings reader; their JSON output updates a GTK popup with battery, connection, and device settings. Internally, device discovery and HID I/O feed the X6 protocol layer, which uses report decoders and protocol constants. The excerpts show these runtime connections; the README documents udev permissions. Settings cannot be read over Bluetooth, as stated by the sampled status code.
Main entry points: hid.py Device discovery and I/O · tray.py Tray controller · x6.py Mouse interface · bat.py Event monitor
Components 12
Tray and display
- Tray controller
tray.py - Settings popup
window.py
Monitoring and settings
- Event monitor
core/bat.py - Settings reader
core/status.py
X6 HID protocol
- Device discovery and I/O
core/hid.py - Mouse interface
core/x6.py - Report and event decoding
core/decode.py - Protocol definitions
core/defaults.py
Other components
- Linux user
- Attack Shark X6
- Linux hidraw
- Unprivileged access rule
99-attacksharkx6.rules
Connections 14
- Linux user → Tray controller: launches
README.md - Tray controller → Event monitor: spawns monitor
tray.py - Tray controller → Settings reader: spawns reader
tray.py - Tray controller → Settings popup: updates and toggles
tray.py - Event monitor → Device discovery and I/O: discovers and watches
core/bat.py - Event monitor → Mouse interface: reads events
core/bat.py - Settings reader → Device discovery and I/O: discovers device
core/status.py - Settings reader → Mouse interface: reads settings
core/status.py - Mouse interface → Device discovery and I/O: uses HID I/O
core/x6.py - Mouse interface → Report and event decoding: decodes reports
core/x6.py - Report and event decoding → Protocol definitions: uses definitions
core/decode.py - Protocol definitions → Device discovery and I/O: uses bus IDs
core/defaults.py - Attack Shark X6 → Device discovery and I/O: communicates via
core/hid.py - Unprivileged access rule → Linux hidraw: permits access
README.md