Sway

Topics: Window manager

Sway is a tiling Wayland compositor compatible with i3; this page covers configuration and troubleshooting.

Subtopics

Identify application windows

This command gives you the app_id for use in for_window rules:

swaymsg -t get_tree | grep app_id

Issue: Can’t retrieve socket

Set the environment variable:

export SWAYSOCK=/run/user/$(id -u)/sway-ipc.$(id -u).$(pgrep -x sway).sock

Issue: Flickering with NVidia cards

Add a script in /etc/profile.d/wayland.sh:

#!/bin/bash

export WLR_RENDERER=vulkan
export XWAYLAND_NO_GLAMOR=1

Bookmarks