summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/quit
diff options
context:
space:
mode:
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