From 196ad7ef52de7e9655adc672e5162518f081960a Mon Sep 17 00:00:00 2001 From: Aarron Lee Date: Fri, 15 Dec 2023 15:38:33 -0500 Subject: [PATCH] update install script and readme --- README.md | 9 +-------- install.sh | 13 ++++++++++++- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 067f8c5..4d143e6 100644 --- a/README.md +++ b/README.md @@ -24,16 +24,9 @@ Included Functionality in this plugin: **Requirements** -ChimeraOS users need to make sure `python-hid` is installed - -``` -sudo frzr-unlock -sudo pikaur python-hid -``` - add Udev rules to your device. -Create a file at `/etc/udev/rules.d/99-usb-tweak.rules`, and add the following to the file: +Create a file at `/etc/udev/rules.d/90-legion-go-remapper.rules`, and add the following to the file: ``` # allow r/w access by all local/physical sessions (seats) diff --git a/install.sh b/install.sh index 13edfe2..685026b 100755 --- a/install.sh +++ b/install.sh @@ -6,13 +6,24 @@ if [ "$EUID" -eq 0 ] exit fi - echo "removing previous install if it exists" cd $HOME sudo rm -rf $HOME/homebrew/plugins/LegionGoRemapper +sudo cat < "/etc/udev/rules.d/90-legion-go-remapper.rules" +# allow r/w access by all local/physical sessions (seats) +# https://github.com/systemd/systemd/issues/4288 +SUBSYSTEMS=="usb", ATTRS{idVendor}=="17ef", TAG+="uaccess" + +# allow r/w access by users of the plugdev group +SUBSYSTEMS=="usb", ATTRS{idVendor}=="17ef", GROUP="plugdev", MODE="0660" + +# allow r/w access by all users +SUBSYSTEMS=="usb", ATTRS{idVendor}=="17ef", MODE="0666" +EOF + echo "installing LegionGoRemapper plugin for RGB control" # download + install Legion go remapper curl -L $(curl -s https://api.github.com/repos/aarron-lee/LegionGoRemapper/releases/latest | grep "browser_download_url" | cut -d '"' -f 4) -o $HOME/LegionGoRemapper.tar.gz