Skip to content

This script installs sway window manager and waybar on an Arch-Linux base system.

License

Notifications You must be signed in to change notification settings

lgaboury/Sway-Waybar-Install-Script

Repository files navigation

Sway-Waybar-Install-Script

2022-08-03T13:25:15,811638319-05:00 2022-08-03T19:19:55,636265472-05:00 2022-08-03T19:20:38,962201014-05:00

How to use

  1. Log into Arch Linux base system. User must be a member of the wheel and input groups.
  2. Go into user's Downloads folder:
    cd ~/Downloads
    
  3. Connect to the internet. With my wireless card, I use:
    sudo nmcli device wifi connect <SSID> password <password>
    
    Replace <SSID> with your wifi SSID and <password> with your password
  4. Clone this repository:
    git clone https://github.com/lgaboury/Sway-Waybar-Install-Script.git
    
  5. Go into Sway-Waybar-Install-Script folder:
    cd Sway-Waybar-Install-Script
    
  6. Run installation script:
    ./install_sway_waybar.sh
    
    Note: Multiple AUR packages are being installed through YAY, so be patient as some of them take a while to build.

Main Features

Install script

The script will install all required packages to ensure the configuration works properly out-of-the-box.

Main components being installed:

SWAY configuration

Applications/Utilities

Autostarted by sway:

by keybindings:

  • foot Wayland terminal emulator (Super+enter)
  • wofi (Super+d)
  • Google Chrome (Super+w)
  • LibreOffice (Super+o)
  • nautilus (Super+e)
  • swaylock (Super+Ctrl+l)
  • nwg-bar (Super+x). Presents the user with a choice of Lock, Logout, Reboot and Shutdown.
  • pamixer used to increase, decrease and mute volume.
  • pactl used to mute microphone.
  • brightnessctl manually adjusts display brightness via XF86MonBrightnessDown and XF86MonBrightnessUp.
  • grim grimshot.sh script is used as follows:
    • Print: screenshot of active output.
    • Shift+Print: screenshot of active window.
    • Ctrl+Print: screenshot of manually selected area.

WAYBAR configuration

Waybar configuration inspired by https://github.com/jakehamilton/dotfiles.git

Modules

  • sway workspaces:
    • large white number indicates focused workspace
    • large grey number indicates workspace(s) with active window
    • small grey number indicates persistent workspaces without active window
  • sway language:
    • L_Shift+R_Shift will switch the keyboard language layout as defined in the sway config file. The selected languages must have been defined with locale-gen during your Arch Linux installation.
  • keyboard state:
    • shows Caps Lock status.
  • custom pacman:
    • shows number of available packages update (including AUR)
    • left-click will launch foot terminal emulator with the yay command
  • custom mail:
    • shows number of unread Google mails via checkgmail.py. Update the script with your actual username and password. If using two-step verification on your account, obtain an application password.
    • left-click will launch Google Chrome pointing to your Gmail Inbox
  • sway mode
  • clock
  • custom weather using wttr.py:
    • shows current temperature
    • hover over will show upcoming forecast
  • pulseaudio
  • custom used mem
  • backlight
  • battery:
    • discharging: white on black
    • charging: white on green
    • warning: black on yellow
    • critical: blinking white on red, a notification will also be sent
  • tray
    • network manager applet
    • blueman applet

Acknowledgement

I would like to recognize all the smart and talented folks who work tirelessly on Arch Linux, Sway, Waybar and all the other programs and utilities used as part of this installation.

About

This script installs sway window manager and waybar on an Arch-Linux base system.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published