Mostly complete, still needs cleanup

This commit is contained in:
Jonathan Cremin 2020-05-19 13:49:30 +01:00
parent a7eaa7dbfb
commit e17f84ad8a
18 changed files with 359 additions and 49 deletions

View file

@ -0,0 +1,4 @@
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0060", MODE:="666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0063", MODE:="666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006c", MODE:="666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006d", MODE:="666", GROUP="plugdev"

View file

@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Streamdeck
Comment=A controller for Streamdeck devices
Icon=/usr/local/lib/python3.8/dist-packages/streamdeck_ui/logo.png
Exec=streamdeck_ui
Terminal=false
Categories=GTK;GNOME

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

View file

@ -0,0 +1,7 @@
---
- name: reload udev
service:
name: udev
state: reloaded
become: yes

View file

@ -0,0 +1,35 @@
---
- name: Add streamdeck-ui deps
apt:
name:
- libhidapi-hidraw0
- libudev-dev
- libusb-1.0-0-dev
state: present
become: yes
- name: create udev rules file for streamdeck
copy:
src: 99-streamdeck.rules
dest: /etc/udev/rules.d/99-streamdeck.rules
notify: reload udev
become: yes
- name: pip3 install streamdeck_ui
pip:
name: streamdeck_ui
state: present
executable: /usr/bin/pip3
become: yes
- name: replace crappy panel icon
copy:
src: streamdeck.png
dest: /usr/local/lib/python3.8/dist-packages/streamdeck_ui/logo.png
become: yes
- name: create streamdeck_ui .desktop
copy:
src: streamdeck.desktop
dest: /home/jonathan/.local/share/applications/streamdeck.desktop