feat(systemd): auto-start tmux main session at login and add dotfiles restore unit

This commit is contained in:
2026-09-24 16:24:10 -04:00
parent e4231f3746
commit eeee8333b5
4 changed files with 39 additions and 0 deletions
@@ -0,0 +1 @@
../tmux-main.service
@@ -0,0 +1,6 @@
[Unit]
Description=Restore dotfiles into home directory
[Service]
Type=oneshot
ExecStart=/usr/bin/stow --dotfiles --dir=/home/sjb/.local/share/dotfiles --restow packages apps config
+15
View File
@@ -0,0 +1,15 @@
[Unit]
Description=Ensure tmux session "main" is running
After=graphical-session.target
PartOf=graphical-session.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=%h/.local/share/dotfiles/script/tmux-start.sh
# If the session check fails (no server / lost session), retry until login ends.
Restart=on-failure
RestartSec=5
[Install]
WantedBy=default.target