12345678910111213141516171819202122232425 |
- #!/bin/sh --
- # vim: ft=sh
- set -ue
- : "${XDG_RUNTIME_DIR:=${TMPDIR:-/tmp}/runtime-${USER:-$(id -un)}}"
- : "${XDG_DATA_HOME:=${HOME:?}/.local/share}"
- if [ "${1}" = start ]; then
- : "${XAUTHORITY:?}"
- : "${DISPLAY:?}"
- _dpy__="${DISPLAY##*:}"
- _host__="${DISPLAY%%:*}"
- export BSPWM_SOCKET="${XDG_RUNTIME_DIR}/bspwm-socket${_host__:+-${_host__}}${_dpy__:+-${_dpy__}}"
- unset _dpy__
- unset _host__
- fi
- export S6_SYSPATH="${XDG_DATA_HOME}/s6/x11"
- export S6_RUNPATH="${XDG_RUNTIME_DIR}/s6/x11"
- exec s6-user-init "${@}"
|