summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/wmiirc
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/wmii-hg/wmiirc
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/wmii-hg/wmiirc')
-rwxr-xr-x.config/wmii-hg/wmiirc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/wmii-hg/wmiirc b/.config/wmii-hg/wmiirc
index 396bed2..6fd348f 100755
--- a/.config/wmii-hg/wmiirc
+++ b/.config/wmii-hg/wmiirc
@@ -12,6 +12,10 @@ fi
wmiir xwrite /event WmiircQuit # close any existing wmiirc's
Event WmiircStart
+# Notify systemd that we're ready
+if [ -S "$NOTIFY_SOCKET" ]; then
+ echo READY=1 | socat STDIO UNIX-SENDTO:"$NOTIFY_SOCKET"
+fi
trap "Event Quit" EXIT