blob: ac0d5a85262c24af99ecf7192d9c2738dc744240 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/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
|