Sway: Difference between revisions

From Alpine Linux
(Initial page)
 
m (→‎Installation: better formatting)
Line 12: Line 12:
<pre>
<pre>
# apk add sway sway-doc
# apk add sway sway-doc
# apk add \               # Install optional dependencies:
# apk add               \ # Install optional dependencies:
     xorg-server-xwayland \ # strongly reccommended for compatability reasons
     xorg-server-xwayland \ # strongly reccommended for compatability reasons
     rxvt-unicode        \ # default terminal emulator
     rxvt-unicode        \ # default terminal emulator

Revision as of 04:01, 4 December 2017

Sway is a tiling Wayland compositor. It's a drop-in replacement for the i3 window manager.

Prerequisites

  1. Run setup-udev to install and configure udev
  2. Install graphics drivers appropriate for your hardware
  3. Add yourself to the input and video groups
  4. Reboot

Installation

# apk add sway sway-doc
# apk add                \ # Install optional dependencies:
    xorg-server-xwayland \ # strongly reccommended for compatability reasons
    rxvt-unicode         \ # default terminal emulator
    dmenu                \ # default application launcher
    imagemagick          \ # for taking screenshots
    ffmpeg                 # for recording video from the screen

Note: you may be required to install sway from Edge.

Running Sway

Simply run `sway` from your nearest TTY's Linux console.

Configuration and Usage

An example config is provided at /etc/sway/config. Copy it to ~/.config/sway/config and read through it to learn the default keybindings.

For additional information, start at man 5 sway and read the upstream FAQ.