This repository contains my personal configuration files for the Sway window manager on Arch Linux. The configuration includes settings for Waybar, wallpapers, scripts, and custom keybindings to provide a clean, efficient, and productive tiling window management experience.
- Custom Sway configuration for tiling and floating windows.
- Waybar configuration for a customizable status bar.
- Keybindings for easy navigation and system control.
- Scripts for screenshots, workspace management, and more.
- SDDM theme customization.
Ensure you have the following packages installed before setting up the configuration:
- Sway: The window manager.
- Waybar: A customizable status bar for Wayland.
- Grim: A screenshot tool for Wayland.
- Slurp: A tool to select regions on Wayland.
- wl-clipboard: Clipboard utility for Wayland.
- SDDM: A display manager (with the astronaut theme).
You can install all dependencies using pacman
:
sudo pacman -S sway waybar grim wl-clipboard slurp sddm
To set up this Sway configuration, follow these steps:
-
Clone the repository:
git clone https://github.com/Vedant9500/sway_config.git cd sway_config
-
Run the setup script:
A script is provided to automate the installation and setup process. Run the following command:
./setup_environment.sh
This script will:
- Install necessary packages.
- Move configuration files to their appropriate locations.
- Set up Waybar, wallpapers, and scripts.
- Install and set up the SDDM astronaut theme.
-
Enable SDDM (if not already enabled):
sudo systemctl enable sddm
After installing, restart your system or log out and log back in. Sway should start with the configured setup.
- Keybindings: Use
$mod
(usually theSuper
key) along with other keys to navigate, launch applications, and manage windows. - Waybar: The top bar will display information such as workspaces, system stats, date/time, etc.
- Custom Scripts: Scripts provided in the repository can be used for various tasks like taking screenshots, changing wallpapers, and more.
Here are some of the keybindings included in this configuration:
$mod + T
: Open terminal$mod + A
: Application launcher$mod + alt + R
: System restart$mod + alt + Q
: System Shutdown$mod + alt + W
: Logout Sway$mod + P
: Screenshot tools$mod + [1-9]
: Switch to workspace
For a complete list of keybindings, refer to the config
file.
The scripts
directory contains several useful scripts:
screenshot_clipboard.sh
: Takes a screenshot and copies it to the clipboard.screenshot_region_clipboard.sh
: Select a region to screenshot and copy to the clipboard.wlogout
andswaylock
integration: Scripts to handle session management and locking.
Make sure to make the scripts executable:
chmod +x ~/scripts/screenshot_clipboard.sh
chmod +x ~/scripts/screenshot_region_clipboard.sh