summaryrefslogtreecommitdiff
path: root/.config/systemd/user/wmii@.service
diff options
context:
space:
mode:
Diffstat (limited to '.config/systemd/user/wmii@.service')
-rw-r--r--.config/systemd/user/wmii@.service11
1 files changed, 3 insertions, 8 deletions
diff --git a/.config/systemd/user/wmii@.service b/.config/systemd/user/wmii@.service
index 6707b9a..121a004 100644
--- a/.config/systemd/user/wmii@.service
+++ b/.config/systemd/user/wmii@.service
@@ -3,17 +3,12 @@ Description=Window Manager Improved Improved on X display %I
Documentation=file:/usr/share/doc/wmii/wmii.pdf
After=X11@%i.target
Requisite=X11@%i.target
-Before=wm-running@%i.target
[Service]
Environment=DISPLAY=%I
-# This assumes that you write READY=1 to $NOTIFY_SOCKET in wmiirc
Type=notify
NotifyAccess=all
-
-ExecStart=/usr/bin/env bash -c 'exec 8>${XDG_RUNTIME_DIR}/x11-wm@%I; exec wmii'
-ExecStop=/usr/bin/env wmiir xwrite /ctl Quit
-
-[Install]
-RequiredBy=X11@%i.target
+ExecStart=/usr/bin/env bash -c 'exec 8>%t/x11-wm@%I; echo "$DISPLAY"; exec wmii -a unix!%t/.%N.sock -r ${XDG_CONFIG_HOME}/systemd/user/wmiirc'
+ExecStop=/usr/bin/env wmiir -a unix!%t/.%N.sock xwrite /ctl Quit
+ExecStopPost=/bin/rm -f -- %t/.%N.sock