#!/sbin/openrc-run
supervisor=supervise-daemon

SWAY_USER=${SWAY_USER:-admin}

name="sway"
description="Headless sway"

WLR_BACKENDS=headless
XDG_RUNTIME_DIR=/tmp
 
export WLR_BACKENDS
export XDG_RUNTIME_DIR

command="sway"
#command_args="-b $META_BIND"
command_user="$SWAY_USER:$SWAY_USER"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"

depend() {
	need net
	after dbus
	after udev
}
