# sway ## Metadata **Status**:: #x **Zettel**:: #zettel/literature **Created**:: [[2023-03-29]] **URL**:: [swaywm.org](https://swaywm.org/) **Kind**:: #app **Parent**:: [[♯ Linux Workstation]], [[♯ Apps Catalog]] **Tags**:: #wm #linux ## Setup ### Missing Mouse Cursor ``` export WLR_NO_HARDWARE_CURSORS=1 ``` ### X11 Applications ``` sudo apt install xwayland ``` ### Dbus Session ``` exec dbus-run-session sway ``` ### Font #### Set Sway interface font ``` font pango:Noto Sans CJK SC 13 ``` See [[Fedora Docs Authors - Adding New Fonts in Fedora (Highlights)]] to install new fonts. #### Xresources ``` ln -snf .Xresources ~/.Xdefaults ``` ### Switch Window Use `swaymsg -t get_tree` to find the id, and switch to the window using command: ``` swaymsg "[con_id=$id]" focus ``` ### Configure GTK Install LXAppearance ``` sudo apt install lxappearance ``` ### Cursor [[Set Cursor Theme and Size in Sway]] ### Boot Stuck on Waiting for Network Edit all the configured network interfaces ``` vi /etc/netplan/* ``` Add `optional: true` to all interfaces, e.g., ``` network: version: 2 wifis: wlo1: access-points: home: password: secret dhcp4: true optional: true ``` ### DPI See [[Linux HiDPI Settings]]. ### Keyring Install `gnome-keyring` Edit `~/.vscode/argv.json` to use `gnome-keyring` in [[♯ Visual Studio Code]]: ``` { "password-store": "gnome" } ``` ### Audio ``` sudo apt install pulseaudio pavucontrol systemctl --user enable --now pulseaudio.service pulseaudio.socket ``` ### Utilities - Screenshot: Grim - Picture Editing: [[Tools (Bookmarks)#^263|Photopea]] - Terminal: foot - File Manager: [[Thunar]] - Notification: dunst