Skip to content

Commit d109feb

Browse files
committed
Updated the readme to add a comment about udev rules
1 parent e88d4d5 commit d109feb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ Either include the library in your project or install it with the following comm
2121
go get github.com/magicmonkey/go-streamdeck
2222
```
2323

24+
On Linux, you might also need to add some `udev` rules (this assumes there's a `plugdev` group, like on Debian-based systems, feel free to amend the group to something more appropriate for your system). Put this into `/etc/udev/rules.d/99-streamdeck.rules`:
25+
```
26+
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0060", MODE:="666", GROUP="plugdev"
27+
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0063", MODE:="666", GROUP="plugdev"
28+
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006c", MODE:="666", GROUP="plugdev"
29+
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006d", MODE:="666", GROUP="plugdev"
30+
```
31+
2432
## Usage
2533

2634
There are 2 ways to use this: the low-level "comms-oriented" interface (using `streamdeck.Open`) which wraps the USB HID protocol, or the higher-level "button-oriented" interface (using `streamdeck.New`) which represents buttons and actions.

0 commit comments

Comments
 (0)