diff --git a/README.md b/README.md index 08f3fff..4f478ba 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ See [Op](src/main/kotlin/net/eksb/obsdc/Op.kt) for a list of operations. ## 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 @@ -19,6 +19,15 @@ Configuration is in `$XDG_CONFIG_HOME/net.eksb.obsdc/config.properties` * `port` - OBS websocket port (default: `4455`) * `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 `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. 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. \ No newline at end of file +So now I can quickly control what people can see without having to focus (or even make visible) the OBS window. diff --git a/src/main/dist/obsdc.service b/src/main/dist/obsdc.service new file mode 100644 index 0000000..b1cc84b --- /dev/null +++ b/src/main/dist/obsdc.service @@ -0,0 +1,10 @@ +[Unit] +Description=OBSDC + +[Service] +Type=dbus +BusName=net.eksb.obsdc +ExecStart=/opt/obsdc/bin/obsdc + +[Install] +WantedBy=default.target diff --git a/src/main/resources/simplelogger.properties b/src/main/resources/simplelogger.properties index a5749f8..01adddd 100644 --- a/src/main/resources/simplelogger.properties +++ b/src/main/resources/simplelogger.properties @@ -1 +1,2 @@ org.slf4j.simpleLogger.log.net.eksb=debug +org.slf4j.simpleLogger.log.org.freedesktop.dbus=debug