From 949725eb7f47d86773580900a922ce7212370c68 Mon Sep 17 00:00:00 2001 From: j4nk Date: Fri, 19 May 2023 16:37:28 -0400 Subject: [PATCH] Put binds in separate folder, added rules files I created to run as user --- 91-g13.rules | 1 - README.md | 2 +- eve-online.bind => bind/eve-online.bind | 0 hon.bind => bind/hon.bind | 0 spring.bind => bind/spring.bind | 0 starcraft2.bind => bind/starcraft2.bind | 0 war.bind => bind/war.bind | 0 rules.d/90-uinput.rules | 1 + rules.d/99-g13.rules | 1 + 9 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 91-g13.rules rename eve-online.bind => bind/eve-online.bind (100%) rename hon.bind => bind/hon.bind (100%) rename spring.bind => bind/spring.bind (100%) rename starcraft2.bind => bind/starcraft2.bind (100%) rename war.bind => bind/war.bind (100%) create mode 100644 rules.d/90-uinput.rules create mode 100644 rules.d/99-g13.rules diff --git a/91-g13.rules b/91-g13.rules deleted file mode 100644 index 7926d4e..0000000 --- a/91-g13.rules +++ /dev/null @@ -1 +0,0 @@ -SUBSYSTEM=="usb", ATTR{idVendor}=="046d", ATTR{idProduct}=="c21c", MODE="0666" \ No newline at end of file diff --git a/README.md b/README.md index 6492d00..f140885 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Compile by running make -If you want to run the daemon as user, put the file 91-g13.rules into /etc/udev/rules.d/ (or whatever directory your distribution uses). +If you want to run the daemon as user, put the file contents of rules.d into /etc/udev/rules.d/ (or whatever directory your distribution uses). ## Running diff --git a/eve-online.bind b/bind/eve-online.bind similarity index 100% rename from eve-online.bind rename to bind/eve-online.bind diff --git a/hon.bind b/bind/hon.bind similarity index 100% rename from hon.bind rename to bind/hon.bind diff --git a/spring.bind b/bind/spring.bind similarity index 100% rename from spring.bind rename to bind/spring.bind diff --git a/starcraft2.bind b/bind/starcraft2.bind similarity index 100% rename from starcraft2.bind rename to bind/starcraft2.bind diff --git a/war.bind b/bind/war.bind similarity index 100% rename from war.bind rename to bind/war.bind diff --git a/rules.d/90-uinput.rules b/rules.d/90-uinput.rules new file mode 100644 index 0000000..ea6623b --- /dev/null +++ b/rules.d/90-uinput.rules @@ -0,0 +1 @@ +KERNEL=="uinput", GROUP="input" \ No newline at end of file diff --git a/rules.d/99-g13.rules b/rules.d/99-g13.rules new file mode 100644 index 0000000..ef0b049 --- /dev/null +++ b/rules.d/99-g13.rules @@ -0,0 +1 @@ +ACTION=="add", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c21c", MODE="0660", GROUP="input"