diff options
| author | 2026-05-13 13:43:11 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:11 +0100 | |
| commit | 456aa855b4348a8aa8b4a6679d5edfffdb235452 (patch) | |
| tree | fd564af6513ec1803c6ee0ddce5a0915f0d647d6 /dot_config/sway/config | |
| parent | 390afffb4e40276129715a1e54187dec1079cfa6 (diff) | |
| download | dotfiles-456aa855b4348a8aa8b4a6679d5edfffdb235452.tar.gz dotfiles-456aa855b4348a8aa8b4a6679d5edfffdb235452.tar.bz2 dotfiles-456aa855b4348a8aa8b4a6679d5edfffdb235452.zip | |
refactor(sway): manage swayidle as a user unit; drop logind override
- New dot_config/systemd/user/swayidle.service, pulled in by
sway-session.target alongside mako/display-watcher/poweralertd. Same
lifetime as the rest of the session: starts after graphical-session,
restarts on failure, stops on logout.
- Drop the swayidle exec from sway config (was unmanaged background
process with no restart, no logging hookup).
- Revert etc/systemd/logind.conf overrides: swayidle handles idle-lock
directly via Wayland ext-idle-notifier, so the logind IdleAction
belt-and-suspenders is redundant. Run just etc-reset
/etc/systemd/logind.conf on the host to restore pristine.
Diffstat (limited to 'dot_config/sway/config')
| -rw-r--r-- | dot_config/sway/config | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/dot_config/sway/config b/dot_config/sway/config index d1357a7..966c6ca 100644 --- a/dot_config/sway/config +++ b/dot_config/sway/config @@ -155,10 +155,3 @@ exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CU exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP exec "sleep 2 && ~/.config/sway/display-toggle.sh init" exec systemctl --user start sway-session.target - -# Idle: lock at 5min (matches IdleActionSec), blank at 6min, lock before sleep. -exec swayidle -w \ - timeout 300 'swaylock -f -e -c 282828' \ - timeout 360 'swaymsg "output * power off"' \ - resume 'swaymsg "output * power on"' \ - before-sleep 'playerctl -a pause; swaylock -f -e -c 282828' |
