Setup and configure sway. When PRIMARY-WAYLAND-COMPOSITOR? is #t, set the primary-wayland-compositor rde value to sway, which is used by feature-wayland-compositor-run-on-tty to determine the compositor to launch.
Configure swaylock.
Configure swayidle.
Sets per-application or per-tab layout. List app_id in tab-applications, can be obtained with swaymsg -t get_tree.
We don't set tab-applications, because it uses window title to determine the layout for a tab, which works horrible for sites with dynamic titles (for example translators or search engines, which change the title depending on the content you input) and for sites with the same title, but having different session. So for consistent experience it's recommended not to use this functionality.
Configure statusbar.
Configure slurp, grim and other tools for screenshot capabilities. Feature is sway dependent, because it relies on swaymsg.
If xdg-user-directories-configuration value provided, feature uses $XDG_PICTURES_DIR/screenshots directory for saving swappy results (and changes filename format by removing swappy- prefix and using ISO date), otherwise $HOME directory is used.
Configure Sway Notification Center.