Skip to content

Commit

Permalink
update install script and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aarron-lee committed Dec 15, 2023
1 parent 8b908b0 commit 196ad7e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
13 changes: 12 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF > "/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
Expand Down

0 comments on commit 196ad7e

Please sign in to comment.