Last active
June 29, 2022 18:26
-
-
Save th0rex/6134b19faeb155d7de8116050a262104 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACTION=="add", SUBSYSTEM=="input", ENV{ID_VENDOR_ENC}=="Logitech", ENV{ID_INPUT_KEYBOARD}=="1", RUN+="/bin/sh -c 'sudo -u user DISPLAY=:0 XAUTHORITY=/home/user/.Xauthority DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus /usr/bin/notify-send -u critical \"foo\"'" |
doas lsusb -v | rg 'bInterfaceProtocol 1 Keyboard' | wc -l
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
udevadm monitor -u
doas udevadm control --reload