summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.config/X11/clientrc2
-rw-r--r--.config/systemd/user/wmii@.service2
2 files changed, 2 insertions, 2 deletions
diff --git a/.config/X11/clientrc b/.config/X11/clientrc
index d18d714..cbcf07a 100755
--- a/.config/X11/clientrc
+++ b/.config/X11/clientrc
@@ -21,5 +21,5 @@ fi
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
cat "${XDG_RUNTIME_DIR}/x11-wm@${DISPLAY}" >/dev/null
-rm "${XDG_RUNTIME_DIR}/x11-wm@${DISPLAY}"
diff --git a/.config/systemd/user/wmii@.service b/.config/systemd/user/wmii@.service
index 10fc4e9..12f585b 100644
--- a/.config/systemd/user/wmii@.service
+++ b/.config/systemd/user/wmii@.service
@@ -9,4 +9,4 @@ Restart=no
Environment=DISPLAY=%I
ExecStart=/usr/bin/bash -l -c /usr/bin/wmii
ExecStop=/usr/bin/wmiir xwrite /ctl Quit
-ExecStopPost=/usr/bin/bash -c ": > ${XDG_RUNTIME_DIR}/x11-wm@%I"
+ExecStopPost=/usr/bin/timeout .1 bash -c ": > ${XDG_RUNTIME_DIR}/x11-wm@%I"