diff --git a/99-g213colors.rules b/99-g213colors.rules new file mode 100644 index 0000000..d15f20a --- /dev/null +++ b/99-g213colors.rules @@ -0,0 +1 @@ +SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c336", ACTION=="add", RUN+="/bin/systemctl restart g213colors.service" diff --git a/main.py b/main.py index 060f581..d911a42 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function import G213Colors diff --git a/makefile b/makefile index 393311f..91301bb 100644 --- a/makefile +++ b/makefile @@ -3,6 +3,7 @@ install : cp main.py /usr/bin/g213colors-gui cp default.conf /etc/G213Colors.conf cp g213colors.service /etc/systemd/system/g213colors.service + cp 99-g213colors.rules /etc/udev/rules.d/99-g213colors.rules chmod +x /usr/bin/G213Colors.py chmod +x /usr/bin/g213colors-gui cp icons/G213Colors-16.png /usr/share/icons/hicolor/16x16/apps/g213colors.png