A Python application that integrates the Logitech MX Master 4 mouse with Hyprland window manager, providing haptic feedback on window focus changes.
- HID++ protocol communication with Logitech MX Master 4
- Hyprland event monitoring via socket connection
- Haptic feedback on active window changes
- Debug mode for testing different haptic patterns
- Python 3.12+
- Logitech MX Master 4 mouse
- Hyprland window manager
hidPython library
- Clone the repository:
git clone <repository-url>
cd master4- Install dependencies using uv:
uv syncOr using pip:
pip install hidRun the watcher to enable haptic feedback on window changes:
python watch.pyThe script will:
- Connect to your MX Master 4 mouse
- Monitor Hyprland window events
- Trigger haptic feedback when you switch windows
Test different haptic feedback patterns:
python mx_master_4.pyThis demo cycles through 15 different haptic patterns with 3-second intervals.
MIT