Skip to content

Instantly share code, notes, and snippets.

@denalena
denalena / set_ergo_scroll.py
Created April 4, 2023 14:57 — forked from pedrovhb/set_ergo_scroll.py
This makes it so that as long as that button is being held, moving the cursors scrolls instead.
#! /usr/bin/env python
import re
import subprocess
RE_LOGITECH_ID = rb"Logitech MX Ergo[\s\-\w]+id=(\d+).*pointer"
def set_ergo_scroll() -> None: