summaryrefslogtreecommitdiff
path: root/.config/X11/clientrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/X11/clientrc')
-rwxr-xr-x.config/X11/clientrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/X11/clientrc b/.config/X11/clientrc
index d18d714..9488ec8 100755
--- a/.config/X11/clientrc
+++ b/.config/X11/clientrc
@@ -19,7 +19,7 @@ fi
#exec wmii
wm=wmii
-systemctl --user start "${wm}@${DISPLAY}.service"
mkfifo "${XDG_RUNTIME_DIR}/x11-wm@${DISPLAY}"
+trap "rm $(printf %q "${XDG_RUNTIME_DIR}/x11-wm@${DISPLAY}")" EXIT
+systemctl --user start "${wm}@${DISPLAY}.service"
cat "${XDG_RUNTIME_DIR}/x11-wm@${DISPLAY}" >/dev/null
-rm "${XDG_RUNTIME_DIR}/x11-wm@${DISPLAY}"