summaryrefslogtreecommitdiff
path: root/.config/wmii-hg
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-07-19 19:31:39 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-07-19 19:31:39 -0600
commit4f657c1a9089993396c702cf7bc3518b18eef3c9 (patch)
tree3f481b148988b912ce209fbfca0a0cbf3cc2d1df /.config/wmii-hg
parentde4f8ceb6473cfc6a20230cc9c7728e25cc04fb8 (diff)
parent641fc49fc651b6a67fb8ff90198e889e0e3920bb (diff)
Merge branch 'master' into build64-par/master
Diffstat (limited to '.config/wmii-hg')
-rw-r--r--.config/wmii-hg/config.sh4
-rwxr-xr-x.config/wmii-hg/wmiirc4
2 files changed, 2 insertions, 6 deletions
diff --git a/.config/wmii-hg/config.sh b/.config/wmii-hg/config.sh
index 6846920..4b968b0 100644
--- a/.config/wmii-hg/config.sh
+++ b/.config/wmii-hg/config.sh
@@ -68,9 +68,7 @@ Event() {
## WMII-meta events
Quit) ## No args
trap - EXIT
- if [ -S "$NOTIFY_SOCKET" ]; then
- echo STOPPING=1 | socat STDIO UNIX-SENDTO:"$NOTIFY_SOCKET"
- fi
+ systemd-notify STOPPING=1 || true
Event WmiircUnmount
Event WmiircQuit;;
Warning) ## $@=string
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