diff options
| author | 2026-05-13 13:43:38 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:38 +0100 | |
| commit | 2098f17c701b28ce2d0725a1e4837d628f4beb1d (patch) | |
| tree | 0235ed470b5391b73241e6ce95bed94bc04fbf5d /dot_config/sway/config | |
| parent | edc642139610cd9923130558ae96cef6c55958a7 (diff) | |
| download | dotfiles-2098f17c701b28ce2d0725a1e4837d628f4beb1d.tar.gz dotfiles-2098f17c701b28ce2d0725a1e4837d628f4beb1d.tar.bz2 dotfiles-2098f17c701b28ce2d0725a1e4837d628f4beb1d.zip | |
fix(sway): re-apply display layout on config reload, drop resume hook
Real cause of the silent switch back to side-by-side: sway reload
(Super+Shift+c or swaymsg reload) re-evaluates output config and
defaults to all-outputs-enabled-side-by-side, dropping the runtime
positions set by display-toggle.sh.
- sway config: `exec` -> `exec_always` so the saved layout is
re-applied on every reload, and use `apply` instead of `init` so
user-chosen layouts (e.g. side-by-side picked deliberately) survive
reloads. First boot still defaults to laptop-off via the script's
state-file fallback.
- swayidle.service: drop the after-resume hook -- DPMS resume isn't
what was breaking the layout, reload was. Less surface area.
Diffstat (limited to 'dot_config/sway/config')
| -rw-r--r-- | dot_config/sway/config | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dot_config/sway/config b/dot_config/sway/config index 1e2cc5f..73283c9 100644 --- a/dot_config/sway/config +++ b/dot_config/sway/config @@ -238,7 +238,7 @@ bindsym $mod+t exec ~/.config/sway/tb-toggle.sh # ── Autostart ───────────────────────────────────────────────────────────────── exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_TYPE XDG_SESSION_DESKTOP PASSWORD_STORE_DIR exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_TYPE XDG_SESSION_DESKTOP PASSWORD_STORE_DIR -exec "sleep 2 && ~/.config/sway/display-toggle.sh init" +exec_always "sleep 2 && ~/.config/sway/display-toggle.sh apply" exec systemctl --user start sway-session.target exec ~/.config/sway/tb-autostart.sh |
