Here is a comprehensive README.md file designed to help you and others easily install, configure, and enjoy Sway alongside your existing desktop environments.
This guide helps beginners install the Sway Window Manager on Debian 13 (Trixie) alongside existing desktop environments like GNOME and Xfce. It also covers how to scale the interface for smaller laptop screens (e.g., 14-inch displays).
- Tiling: Automatically arranges windows side-by-side (no more dragging/resizing).
- Lightweight: Uses far fewer resources than GNOME or KDE.
- Wayland-native: Built for modern Linux graphics, replacing the older X11.
- Safe Coexistence: Runs peacefully alongside your current desktops; you choose which one to use at login.
You don't need to remove anything. We will just add Sway packages.
Open your terminal and ensure your Debian system is up-to-date:
sudo apt update && sudo apt upgrade -yThis installs the window manager, screen locker, background manager, and idle daemon.
sudo apt install sway swaybg swayidle swaylock foot -yThese make Sway usable for daily tasks (status bar, app menu, file manager, screenshots, etc.).
sudo apt install waybar wofi grim slurp wl-clipboard fonts-font-awesome thunar nwg-look -y- waybar: Top status bar.
- wofi: Application menu (launcher).
- grim/slurp: Screenshot tools.
- nwg-look: GUI tool to easily change GTK/App themes and font sizes.
The video showcases a custom installation script from the creator's Codeberg repository. As a beginner, I recommend starting with the manual installation steps above rather than using automated scripts, as this helps you understand what's being installed. However, if you're interested in the video creator's complete configuration, the script is available at:
bash
git clone https://codeberg.org/justaguylinux/sway-setup
cd sway-setup
chmod +x install.sh
./install.shThe script installs Sway with pre-configured settings and additional tools (demonstrated from 3:37 to 14:33 in the video https://youtu.be/sKOWqAm70jc).
Sway doesn't have a "settings menu" like GNOME; it uses a simple text file.
mkdir -p ~/.config/sway
mkdir -p ~/.config/waybar
mkdir -p ~/.config/wofiCopy the default configuration to your user folder so you can edit it safely:
cp /etc/sway/config ~/.config/sway/configIf everything looks tiny on your laptop screen, use one of these two methods.
This acts like a zoom for the entire interface.
- Open your config file:
nano ~/.config/sway/config - Scroll to the bottom and add this line:
(Try 1.2, 1.25, or 1.5 depending on your preference.)
output * scale 1.2 - Save (
Ctrl+O,Enter) and Exit (Ctrl+X). - Reload Sway with
Super+Shift+R(Super is the Windows/Command key).
If you prefer to just enlarge text without scaling the whole UI:
1. Window Titles:
Edit ~/.config/sway/config:
font pango:monospace 11 # Change 8 to 11 or 12
2. Top Bar (Waybar):
Edit ~/.config/waybar/style.css (create if missing):
* {
font-size: 16px;
}3. App Menu (Wofi):
Edit ~/.config/wofi/style.css:
window {
font-size: 18px;
}4. GTK Apps (Files, Firefox): Open the nwg-look app you installed earlier and increase the font size there.
- Log out of your current session (GNOME/Xfce).
- At the login screen, click your username.
- Look for a Gear Icon (usually bottom right or top right).
- Select Sway.
- Enter your password and login.
To go back, just log out and select GNOME or Xfce again.
Sway is keyboard-driven. The "Super" key is usually the Windows/Command key.
| Action | Shortcut |
|---|---|
| Open Terminal | Super + Enter |
| Open App Menu | Super + Space |
| Close Window | Super + Shift + Q |
| Reload Config | Super + Shift + R |
| Exit Sway | Super + Shift + E |
| Move Focus | Super + Arrow Keys |
| Move Window | Super + Shift + Arrow Keys |
| Toggle Fullscreen | Super + F |
| Layout: Tiled | Super + E |
| Layout: Tabbed | Super + W |
- NVIDIA Users: If you have an NVIDIA card and Sway won't start, use the
--my-next-gpu-wont-be-nvidiaflag (yes, really) or check the Debian Wiki for proprietary driver workarounds. - Missing Configs: If your bar (Waybar) is missing, copy its default config too:
cp /etc/xdg/waybar/config ~/.config/waybar/config cp /etc/xdg/waybar/style.css ~/.config/waybar/style.css
Enjoy your fast, efficient, and beautiful Linux desktop