Skip to content

Vedant9500/sway_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Sway Configuration

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.

Table of Contents

  1. Features
  2. Dependencies
  3. Installation
  4. Usage
  5. Keybindings
  6. Custom Scripts
  7. Screenshots

Features

  • 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.

Dependencies

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

Installation

To set up this Sway configuration, follow these steps:

  1. Clone the repository:

    git clone https://github.com/Vedant9500/sway_config.git
    cd sway_config
  2. 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.
  3. Enable SDDM (if not already enabled):

    sudo systemctl enable sddm

Usage

After installing, restart your system or log out and log back in. Sway should start with the configured setup.

  • Keybindings: Use $mod (usually the Super 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.

Keybindings

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.

Custom Scripts

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 and swaylock 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

Screenshots

alt text


About

sway config files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published