#!/bin/bash # ============================================================================ # DarkForge Linux — seatd daemon # ============================================================================ # Seat manager — provides access to GPU, input devices, and sound hardware # for unprivileged user sessions. Required by wlroots/dwl for Wayland. # The autologin user must be in the 'video' group. # ============================================================================ DAEMON="/usr/bin/seatd" case "$1" in start) if [ -x "$DAEMON" ]; then ${DAEMON} -g video & echo " seatd started (group: video)" else echo " seatd not found at ${DAEMON}" fi ;; stop) killall seatd 2>/dev/null echo " seatd stopped" ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac