#!/bin/sh

# Enable onboard for user
systemctl enable onboard@"${SUBJECT}"

# Enable auto-rotate
systemctl --global enable auto-rotate.service touchswipe.service

# Enable autologin
echo -e "[Autologin]\nUser=${SUBJECT}\nSession=plasmax11" > /etc/sddm.conf.d/00-autologin.conf

# Add user to mandatory groups
usermod -aG wheel,video,audio,input "${SUBJECT}"

# Remove openbox session file
rm -f /usr/share/xsessions/openbox.desktop
