# Sway-WM Setup and Theme for EndeavourOS

**Sway EndeavourOS Community Edition**

[![Maintenance](https://img.shields.io/maintenance/yes/2025.svg)]()

## General Information

Please be aware that this is a private fork fromt he following Sway EndeavourOS Community Edition.

https://github.com/EndeavourOS-Community-Editions/sway/tree/main

## To Install Sway

### With the EOS Installer

1. In the live environment, choose "Fetch your install customization file" from the Welcome app.
2. Type or paste the URL for the Sway user_commands.bash file.
```
https://git.pravida.info/seb/sway/raw/branch/main/setup_sway_isomode.bash
```
![welcome_install-customization-file](https://github.com/user-attachments/assets/b4b9e882-0e53-4e11-be10-a92e5b55cefb)

3. Click <kbd> OK </kbd>, then back in the Welcome app click <kbd> Start the Installer </kbd> and proceed with an online installation. Be sure to choose "no desktop" on the DE selection screen.

![installer-no_desktop](https://github.com/user-attachments/assets/f9146bf2-e0ab-4e0a-9b6a-89ad5eed5a29)


### Manually (Post-Installation)

Alternatively, you can add Sway after the installation is complete by cloning the repo and running the `sway-install.sh` script.

    git clone https://git.pravida.info/seb/sway.git

    cd sway

    sudo ./sway-install.sh
    
## Post install

- Keyboard layout in: `~/.config/sway/config.d/input`
- Screen settings in: `~/.config/sway/config.d/output`
- Keybindings Cheatsheet: press keyboard icon in waybar

 

## Tutorial for sway-wm settings:

 - Background handled by Azote
 - Filebrowser = Thunar
 - Default Terminal-Emulator = Foot
 - Text-Editor = xed/nano/nvim
 - Bar = Waybar
 - Sound = Pulseaudio

 - Login Manger = sddm
 - 

## Keyboard shortcuts:

Click the keyboard icon in the Waybar to launch the keybinding cheatsheet.

![cheatsheet](https://github.com/user-attachments/assets/83ab7d12-0c94-457f-b8ee-90b7ff970954)


## Tiling:

Windows are set to tile by default in Sway. This can be changed to:

- stacking: Only the focused window in the container is displayed. You get a list of windows at the top of the container. 
   - <kbd>Mod</kbd>+<kbd>S</kbd> = Vertical List
   - <kbd>Mod</kbd>+<kbd>W</kbd> = Horizontal List
     - navigate lists with <kbd>Mod</kbd>+<kbd>↑ ↓ → ←</kbd> 
   - <kbd>Mod</kbd>+<kbd>E</kbd> = Back to tiling
   
![sway](https://github.com/user-attachments/assets/9f4bbdac-e478-4918-bdac-da4d83cece42)

Fuzzel:
![fuzzel](https://github.com/user-attachments/assets/fa4d38ba-abcd-4cd9-af9b-4ef6f678b594)

Waybar:
![waybar](https://github.com/user-attachments/assets/6a4cc6f0-95dc-4a47-a6f9-7c5f853b9b70)

