summaryrefslogtreecommitdiff
path: root/.config/systemd/user/wmii@.service
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-02-04 15:13:00 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-02-04 15:16:22 -0500
commit7fa8100ee556f0c94adfb91a240001ce86104c48 (patch)
tree33e6e332b812b8cae5df590a60a90de34c2c9503 /.config/systemd/user/wmii@.service
parenta41c113539cab32ccf697219ef024735bc6fd866 (diff)
systemd: Add and use wm@$DISPLAY.target
wm@.target to change the default window manager. Create wm@$DISPLAY to override for a particular display
Diffstat (limited to '.config/systemd/user/wmii@.service')
-rw-r--r--.config/systemd/user/wmii@.service7
1 files changed, 5 insertions, 2 deletions
diff --git a/.config/systemd/user/wmii@.service b/.config/systemd/user/wmii@.service
index 3902627..602bdb8 100644
--- a/.config/systemd/user/wmii@.service
+++ b/.config/systemd/user/wmii@.service
@@ -1,10 +1,13 @@
[Unit]
Description=Window Manager Improved Improved
Documentation=file:/usr/share/doc/wmii/wmii.pdf
+Before=wm@%i.target
+StopWhenUnneeded=true
[Service]
-Type=simple
-Restart=no
+# This assumes that you write READY=1 to $NOTIFY_SOCKET in wmiirc
+Type=notify
+NotifyAccess=all
Environment=DISPLAY=%I
ExecStart=/usr/bin/bash -l -c 'exec 8>${XDG_RUNTIME_DIR}/x11-wm@%I; exec /usr/bin/wmii'