From 030848c18553283683507b78f569d457afae5319 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:25:01 +0100 Subject: sway: manage mako, poweralertd, display-watcher via systemd user units Replace sway exec launches with a sway-session.target that BindsTo graphical-session.target and Wants mako, poweralertd, and a new display-watcher.service. Services now get restart-on-failure, journal integration, and clean shutdown when sway exits. --- dot_config/sway/config | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'dot_config/sway/config') diff --git a/dot_config/sway/config b/dot_config/sway/config index df05597..119849d 100644 --- a/dot_config/sway/config +++ b/dot_config/sway/config @@ -153,7 +153,5 @@ bar { # ── Autostart ───────────────────────────────────────────────────────────────── exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP -exec mako -exec poweralertd exec "sleep 2 && ~/.config/sway/display-toggle.sh init" -exec ~/.config/sway/display-watcher.sh +exec systemctl --user start sway-session.target -- cgit v1.2.3-70-g09d2