summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-22 16:19:24 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-07-19 19:28:57 -0600
commitbcdc8591d20f23e3f4a1645a7ccfc473b2916c3e (patch)
tree7a6afae8366b15f9429f9133e1d54dc42aca0f23
parenta9fb80359a3e84ed7b64d3ecdf699acc5e53abc9 (diff)
X11/clientrc: properly escape $DISPLAY for systemd
-rw-r--r--.config/X11/clientrc9
-rw-r--r--.config/X11/modmap.new4
2 files changed, 9 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
diff --git a/.config/X11/modmap.new b/.config/X11/modmap.new
new file mode 100644
index 0000000..c902b52
--- /dev/null
+++ b/.config/X11/modmap.new
@@ -0,0 +1,4 @@
+keycode 135 = Super_R
+
+clear mod4
+add mod4 = Super_L Super_R Hyper_L Hyper_R Menu