blob: 88ae527b37768d5a41fecc34b2d2bea5da7578c7 (
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
|
#!/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
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
|