summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/wmiirc
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-03-21 13:47:08 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-03-21 13:47:08 -0400
commit1226b02059d0ca5a395c174e9d32848ef5983616 (patch)
treecf1121c729ee34bd1a8bc499b1f531a27bf867c0 /.config/wmii-hg/wmiirc
parentf9886289836d3c4f74ca7de9469350c3c3db50fd (diff)
wmiirc: make the wmiirc action work with systemd
Because the new wmiirc won't be a direct child of `systemd --user` (why isn't it a subreaper!?), it won't notice if wmiirc crashes. But we don't expect it to do that. ¯\_(ツ)_/¯
Diffstat (limited to '.config/wmii-hg/wmiirc')
-rwxr-xr-x.config/wmii-hg/wmiirc3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/wmii-hg/wmiirc b/.config/wmii-hg/wmiirc
index f96642b..a71b6d2 100755
--- a/.config/wmii-hg/wmiirc
+++ b/.config/wmii-hg/wmiirc
@@ -8,6 +8,7 @@ fi
. include.sh
+systemd-notify --pid || true
wmiir xwrite /event WmiircQuit # close any existing wmiirc's
Event WmiircStart
@@ -16,4 +17,4 @@ trap "Event Quit" EXIT
while read -r event; do
Event $event <&-
-done < <(wmiir read /event 2>/dev/null)
+done < "$WMII_DIR/event"