# === ~/.config/sway/config.d/20-autostart.conf === # background services started when sway comes up. # polkit agent — needed for gparted, mount UIs in thunar, etc. exec /usr/libexec/polkit-gnome-authentication-agent-1 # clipboard — start clipmenud directly (it watches the clipboard internally) # Drop the wl-paste --watch wrapper to avoid bar noise if the socket isn't ready. exec clipmenud # xdg-desktop-portal — required for native file/screen sharing in Firefox/Chromium. # Skip if services aren't enabled; the user can enable with: # systemctl --user enable --now xdg-desktop-portal xdg-desktop-portal-wlr # Until then, those systemctl lines are quiet no-ops. exec sh -c 'systemctl --user start xdg-desktop-portal xdg-desktop-portal-wlr 2>/dev/null || true'