elogind is logind patched not to demand PID1 privileges. It's the default user login and seat manager in Artix. Clean Artix installations should already have it set up.

Installation

People migrating from systemd setups should install elogind and elogind-openrc or elogind-runit. elogind (and dbus) is started on demand and should not need to be explicitly activated; if it isn't, it must be put in the boot runlevel.

Tips and tricks

Execute a script at suspend

Put your script in /usr/lib/elogind/system-suspend and make it executable. The example below is used to lock the user X screen, which is useful if the session-manager fails to do it:

#!/bin/sh
# /lib/elogind/system-sleep/lock.sh
# Lock before suspend integration with elogind

username=cooluser
userhome=/home/$username
export XAUTHORITY="$userhome/.Xauthority"
export DISPLAY=":0.0"
case "${1}" in
    pre)
        su $username -c "/usr/bin/slock" &
        sleep 1s;
        ;;
esac

Troubleshooting

Every user process is killed at logout, including screen/tmux sessions!

This "feature" was introduced and made default in systemd 230, without much warning, changing an age-old UNIX behaviour. It's disabled in Artix at compile time, but you can control it in /etc/elogind/logind.conf by changing the value of KillUserProcesses to your liking.