···259259260260bindsym $mod+r mode "resize"
261261262262-# Start swaybar to display a workspace bar (plus i3status' system information).
263263-# i3status is compositor-agnostic and works under sway unchanged.
262262+# Status bar: Waybar (replaces swaybar + i3status).
263263+# `swaybar_command waybar` hands the bar over to Waybar but lets sway own its
264264+# lifecycle, so it restarts on `reload` and goes away on exit -- no stray
265265+# `exec waybar` needed. Waybar's own config lives in ~/.config/waybar/ (tracked
266266+# in these dotfiles) and draws the workspaces, system info, and tray itself.
264267bar {
265265- status_command i3status -c ~/.config/sway/i3status.conf
266266- tray_output primary
268268+ swaybar_command waybar
267269}
268270269271# Make sure apps and the tray see the Wayland/desktop environment.