1
0
Fork 0
knowledge-base/KB/Linux/Desktop/sway.md

80 lines
1.2 KiB
Markdown
Raw Normal View History

2022-09-04 12:54:22 +00:00
---
creation date: 2022-02-06
tags: [note,sway,i3,linux]
---
# sway
Sway is a replacement for [[KB/Linux/Desktop/i3]] but for _Wayland_.
## Install
Install sway or related system packages
```shell
mako
grimshot
grim
sway
swaybg
swaylock
swayidle
slurp
ttf-font-awesome
waybar
wdisplays
wev
wlr-randr
wf-recorder
rofi-lbronn-wayland
xdg-desktop-portal-wlr [1]
```
[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
syncthingtray
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
```