summaryrefslogtreecommitdiff
path: root/.config/X11
diff options
context:
space:
mode:
Diffstat (limited to '.config/X11')
-rw-r--r--.config/X11/clientrc9
1 files changed, 5 insertions, 4 deletions
diff --git a/.config/X11/clientrc b/.config/X11/clientrc
index 88ae527..ac0d5a8 100644
--- a/.config/X11/clientrc
+++ b/.config/X11/clientrc
@@ -18,9 +18,10 @@ if [ -f "$usermodmap" ]; then
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}"
+_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" &
+cat "${XDG_RUNTIME_DIR}/x11-wm@${_DISPLAY}" &
+systemctl --user start "wm@${_DISPLAY}.target" &
wait