summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/wmiirc
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-22 16:21:08 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-07-19 19:28:58 -0600
commit4fbcd8769a06ddb9e53b7b647c3e1416b8d9962f (patch)
tree7808c2eb354b946705bceb37a7a931991059d8d8 /.config/wmii-hg/wmiirc
parent93420febe072e47be485fda291e00a41a504e3af (diff)
wmii: Use systemd-notify instead of hitting the socket manually
Diffstat (limited to '.config/wmii-hg/wmiirc')
-rwxr-xr-x.config/wmii-hg/wmiirc4
1 files changed, 1 insertions, 3 deletions
diff --git a/.config/wmii-hg/wmiirc b/.config/wmii-hg/wmiirc
index 260aaa1..379de79 100755
--- a/.config/wmii-hg/wmiirc
+++ b/.config/wmii-hg/wmiirc
@@ -13,9 +13,7 @@ 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
+systemd-notify READY=1 || true
trap "Event Quit" EXIT