From 80ae5a81d33d7c34c6d4d1f06a9b09004d7d58a7 Mon Sep 17 00:00:00 2001 From: "Toerd@archlinux" Date: Sun, 5 Apr 2020 20:48:51 +0200 Subject: [PATCH] feat(udev): added rule for yubikeys --- etc/udev/rules.d/91-yubi-key.rules | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 etc/udev/rules.d/91-yubi-key.rules diff --git a/etc/udev/rules.d/91-yubi-key.rules b/etc/udev/rules.d/91-yubi-key.rules new file mode 100644 index 0000000..1328d71 --- /dev/null +++ b/etc/udev/rules.d/91-yubi-key.rules @@ -0,0 +1,2 @@ +ACTION=="add", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0407", RUN+="/usr/bin/sudo -u toerd /home/toerd/.dotfiles/yubikey/switch-yubikey.sh" +ACTION=="add", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0405", RUN+="/usr/bin/sudo -u toerd /home/toerd/.dotfiles/yubikey/switch-yubikey.sh" \ No newline at end of file