diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-02-04 15:13:00 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-02-04 15:16:22 -0500 |
commit | 7fa8100ee556f0c94adfb91a240001ce86104c48 (patch) | |
tree | 33e6e332b812b8cae5df590a60a90de34c2c9503 /.config/wmii-hg/quit | |
parent | a41c113539cab32ccf697219ef024735bc6fd866 (diff) |
systemd: Add and use wm@$DISPLAY.target
wm@.target to change the default window manager. Create wm@$DISPLAY to
override for a particular display
Diffstat (limited to '.config/wmii-hg/quit')
-rwxr-xr-x | .config/wmii-hg/quit | 8 |
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 |