Run i3 as a systemd user unit

This commit is contained in:
2020-12-21 17:57:18 +01:00
parent 1d12b99907
commit ab15b22832
23 changed files with 32 additions and 2 deletions

View File

@@ -20,13 +20,13 @@ fi
start_wm() {
log "starting i3"
exec i3 -c "$HOME/.i3/config" >> "$LOGDIR/i3/i3.log"
systemctl --user start windowmanager.target
sleep inf
# exec systemd-run --user --unit i3_user --pty --setenv=DISPLAY=${DISPLAY} i3 -c "$HOME/.i3/config" >> "$LOGDIR/i3/i3.log"
}
autostart() {
log "Starting systemd user target \"autostart.target\""
systemctl --user start autostart.target >>"${LOGFILE}" 2>&1
}
exec >> "$LOGFILE" 2>&1