summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/quit
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-02-07 00:09:33 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-02-07 00:09:33 -0500
commit34bb88f2d5231922015ea24abb2f43223792c1c9 (patch)
treec8d89228e88330a6694aed13c54be8758272d154 /.config/wmii-hg/quit
parentcb170078f7fe918b880da0dbcccc622a8b480451 (diff)
parentf5c41d73b4c085691f2c01dd80366d08cb352a01 (diff)
Merge remote-tracking branch 'origin/master' into build64-par/master
Diffstat (limited to '.config/wmii-hg/quit')
-rwxr-xr-x.config/wmii-hg/quit8
1 files changed, 6 insertions, 2 deletions
diff --git a/.config/wmii-hg/quit b/.config/wmii-hg/quit
index 27d9052..341468e 100755
--- a/.config/wmii-hg/quit
+++ b/.config/wmii-hg/quit
@@ -1,3 +1,7 @@
#!/bin/bash
-. include.sh
-echo quit >> $WMII_DIR/ctl
+if type systemctl &>/dev/null; then
+ systemctl --user stop "wmii@$DISPLAY.service"
+else
+ . include.sh
+ echo quit >> $WMII_DIR/ctl
+fi