diff options
| -rw-r--r-- | seatd/notification-fd | 1 | ||||
| -rwxr-xr-x | seatd/run | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/seatd/notification-fd b/seatd/notification-fd new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/seatd/notification-fd @@ -0,0 +1 @@ +4 diff --git a/seatd/run b/seatd/run new file mode 100755 index 0000000..68b1308 --- /dev/null +++ b/seatd/run @@ -0,0 +1,13 @@ +#!/bin/sh +exec 2>&1 + +[ -r ./conf ] && . ./conf +# you may not set nfd in conf; it *must* match ./notification-fd +nfd= +# NOTE: $(<) & co are non-POSIX extensions +[ -r ./notification-fd ] && nfd=$(cat ./notification-fd) + +: ${GROUP:=_seatd} # Void Linux oriented default, set in conf +: ${OPTS:=-g "$GROUP"} # or just set all the opts yourself + +exec /usr/bin/seatd ${nfd:+-n "$nfd"} $OPTS |
