https://github.com/juwit/streamdeck-daemon
https://github.com/juwit/streamdeck-daemon
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/juwit/streamdeck-daemon
- Owner: juwit
- Created: 2021-03-12T17:09:32.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-27T10:56:12.000Z (over 3 years ago)
- Last Synced: 2025-02-07T15:14:34.379Z (over 1 year ago)
- Language: Go
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# streamdeck-daemon
a simple streamdeck tool, written in golang,
which loads configuration from a JSON file,
and exposes an HTTP API to dynamically interact with the streamdeck.
it #WorksOnMyMachine.
## requirements
* [x] : write text on button press
* [x] : execute command on button press
* [x] : show images on buttons
* [x] : manage "pages"
* [x] : change page on button press
* [x] : update button on http post
## installing dependencies
```shell
sudo apt install libxdo-dev
```
## building
```shell
go mod tidy
go build
```
## running
```shell
./streamdeck-daemon
```
## installing
add *udev* rules:
```shell
sudo cp 99-streamdeck.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
```
```shell
sudo cp ./streamdeck-daemon /opt
sed -i "s/username/$USER/" streamdeck-daemon.service
sudo cp ./streamdeck-daemon.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable streamdeck-daemon
sudo systemctl start streamdeck-daemon
```
## dependencies
* github.com/magicmonkey/go-streamdeck : for basic streamdeck interaction
* https://github.com/go-chi/chi : for http routing
* libxdo-dev : for sending keyboard keys on button press (sudo apt install libxdo-dev)