systemd unit file
This commit is contained in:
13
README.md
13
README.md
@@ -11,7 +11,7 @@ See [Op](src/main/kotlin/net/eksb/obsdc/Op.kt) for a list of operations.
|
|||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
Configuration is in `$XDG_CONFIG_HOME/net.eksb.obsdc/config.properties`
|
Configuration is read from `$XDG_CONFIG_HOME/net.eksb.obsdc/config.properties`
|
||||||
|
|
||||||
### Configuration options
|
### Configuration options
|
||||||
|
|
||||||
@@ -19,6 +19,15 @@ Configuration is in `$XDG_CONFIG_HOME/net.eksb.obsdc/config.properties`
|
|||||||
* `port` - OBS websocket port (default: `4455`)
|
* `port` - OBS websocket port (default: `4455`)
|
||||||
* `password` - OBS websocket password (required)
|
* `password` - OBS websocket password (required)
|
||||||
|
|
||||||
|
### systemd
|
||||||
|
|
||||||
|
A systemd unit file ([obsdc.service](src/main/dist/obsdc.service)) is included.
|
||||||
|
|
||||||
|
1. Copy the file to `~/.config/systemd/user/`.
|
||||||
|
2. Edit the `ExecStart` line for where you have installed obsdc.
|
||||||
|
3. `systemctl --user enable obsdc`
|
||||||
|
4. `systemctl --user start obsdc`
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
`gradle build`
|
`gradle build`
|
||||||
@@ -54,4 +63,4 @@ My [window manager](https://swaywm.org/) is configured to call `obsdc-signal` wi
|
|||||||
keys emitted by one knob and `PAN_RIGHT`/`PAN_LEFT` for the keys emitted by the other knob.
|
keys emitted by one knob and `PAN_RIGHT`/`PAN_LEFT` for the keys emitted by the other knob.
|
||||||
The regular keys on the macropad are mapped to the other actions.
|
The regular keys on the macropad are mapped to the other actions.
|
||||||
|
|
||||||
So now I can quickly control what people can see without having to focus (or even make visible) the OBS window.
|
So now I can quickly control what people can see without having to focus (or even make visible) the OBS window.
|
||||||
|
|||||||
10
src/main/dist/obsdc.service
vendored
Normal file
10
src/main/dist/obsdc.service
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=OBSDC
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=dbus
|
||||||
|
BusName=net.eksb.obsdc
|
||||||
|
ExecStart=/opt/obsdc/bin/obsdc
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
@@ -1 +1,2 @@
|
|||||||
org.slf4j.simpleLogger.log.net.eksb=debug
|
org.slf4j.simpleLogger.log.net.eksb=debug
|
||||||
|
org.slf4j.simpleLogger.log.org.freedesktop.dbus=debug
|
||||||
|
|||||||
Reference in New Issue
Block a user