--- creation date: 2022-02-06 tags: [note,sway,i3,linux] --- Sway is a replacement for [[KB/Linux/Desktop/ArchLinux/i3]] but for _Wayland_. ## Install Install sway or related system packages ```shell mako grimshot grim sway swaybg swaylock swayidle slurp ttf-font-awesome waybar-git # or waybar although longer no release wdisplays wev wlr-randr wf-recorder rofi-lbronn-wayland xdg-desktop-portal-wlr # used for [1], keep other portal-* packages ``` [1]: [WebRTC](https://wiki.archlinux.org/title/PipeWire#WebRTC_screen_sharing) Install packages used as replacement from popular DE: ```shell simplescreenrecorder-wlroots-git redshift-wayland-git thunar thunar-volman thunar-archive-plugin thunar-media-tags-plugin tumbler ffmpegthumbnailer gvfs xarchiver viewnior gnome-keyring seahorse nm-applet gparted ``` ## Automatic start * Edit `~/.zprofile` and replace `startx` with `exec sway` if needed * Ensure you have `getty@tty1` enabled ## Config ```shell # ~/.config/electron-flags.conf --enable-features=UseOzonePlatform --ozone-platform=wayland # ~/.zshenv export _JAVA_AWT_WM_NONREPARENTING=1 export MOZ_ENABLE_WAYLAND=1 export XDG_CURRENT_DESKTOP=sway ``` Inside Chromium based browsers _enable_ the following under `chrome://flags` ```shell WebRTC PipeWire support ```