#!/hint/sh # Load system xinit modules (disabled) # Remove "false &&" to enable if false && [ -d /etc/X11/xinit/xinitrc.d ]; then echo ' ==> Running scripts in Entering xinitrc.d/*' for f in /etc/X11/xinit/xinitrc.d/*; do echo " -> $f" [ -x "$f" ] && . "$f" done unset f echo ' -> done' fi usermodmap="$XDG_CONFIG_HOME/X11/modmap" if [ -f "$usermodmap" ]; then xmodmap "$usermodmap" fi [ -n "$XDG_RUNTIME_DIR" ] || exit 1 _DISPLAY="$(systemd-escape -- "$DISPLAY")" trap "rm -f $(printf '%q' "${XDG_RUNTIME_DIR}/x11-wm@${_DISPLAY}")" EXIT mkfifo "${XDG_RUNTIME_DIR}/x11-wm@${_DISPLAY}" cat "${XDG_RUNTIME_DIR}/x11-wm@${_DISPLAY}" & systemctl --user start "wm@${_DISPLAY}.target" & wait