1 2 3 4 5 6 7
#!/bin/bash if type systemctl &>/dev/null; then systemctl --user stop "wmii@$DISPLAY.service" else . include.sh echo quit >> $WMII_DIR/ctl fi