summaryrefslogtreecommitdiff
path: root/.config/X11/clientrc
blob: 4773ea4c16189cd16fa5a7e94294358369633602 (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
#!/bin/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

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