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

79 lines
1.3 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
2022-11-22 22:15:50 +00:00
waybar-git # or waybar although longer no release
2022-09-04 12:54:22 +00:00
wdisplays
wev
wlr-randr
wf-recorder
rofi-lbronn-wayland
2022-11-22 22:15:50 +00:00
xdg-desktop-portal-wlr # used for [1], keep other portal-* packages
2022-09-04 12:54:22 +00:00
```
[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
```