Sweets
Installation

Build from Source

Build and install Sweets from source

Sweets is pre-release. Try it in a window first, and keep SSH or a second TTY handy the first time you run it as your desktop.

For FreeBSD, use the FreeBSD instructions.

Requirements

Rust 1.88 or newer, plus these development packages:

Arch Linux

sudo pacman -S --needed base-devel git rustup pkgconf libdrm mesa libinput \
  seatd systemd-libs wayland libxkbcommon pango cairo
rustup default stable

Fedora

sudo dnf install gcc git rust cargo pkgconf-pkg-config libdrm-devel \
  mesa-libEGL-devel libgbm-devel libinput-devel libseat-devel \
  libudev-devel wayland-devel libxkbcommon-devel pango-devel cairo-devel

Debian and Ubuntu

sudo apt update
sudo apt install build-essential git pkg-config libdrm-dev libegl1-mesa-dev \
  libgbm-dev libinput-dev libseat-dev libudev-dev libwayland-dev \
  libxkbcommon-dev libpango1.0-dev libcairo2-dev

If your distribution's Rust is older than 1.88, install it with rustup.

On NixOS, use the NixOS module instead.

Sweets requires libinput 1.23 or newer, including its libinput pkg-config module. Check it with pkg-config --atleast-version=1.23 libinput.

PackageFor
A terminal, such as foot or kittyOpened automatically by Super+Return
xwaylandX11 apps
xdg-desktop-portal, xdg-desktop-portal-gtk, xdg-desktop-portal-wlrFile dialogs and screen sharing

Build

git clone -b main https://github.com/naurissteins/Sweets.git
cd Sweets
cargo build --release --locked --workspace

This builds target/release/sweets and target/release/sweets-session.

Try it in a window

Run Sweets inside your current desktop:

install -Dm644 config/sweets.lua target/share/sweets/sweets.lua
SWEETS_BACKEND=nested ./target/release/sweets

Super+Return opens a terminal. Super+Shift+Q quits.

Install

sudo install -Dm755 target/release/sweets /usr/local/bin/sweets
sudo install -Dm755 target/release/sweets-session /usr/local/bin/sweets-session
sudo install -Dm644 config/sweets.lua /usr/local/share/sweets/sweets.lua
sudo install -Dm644 config/shaders/*.glsl -t /usr/local/share/sweets/shaders
sudo install -Dm644 packaging/man/sweets.1 packaging/man/sweets-session.1 \
  -t /usr/local/share/man/man1
sudo install -Dm644 packaging/sweets.desktop /usr/share/wayland-sessions/sweets.desktop
sudo install -Dm644 packaging/xdg-desktop-portal/sweets-portals.conf \
  /usr/local/share/xdg-desktop-portal/sweets-portals.conf

On systemd, also install the session target:

sudo install -Dm644 packaging/systemd/sweets-session.target \
  /usr/local/lib/systemd/user/sweets-session.target
systemctl --user daemon-reload

Now see First Launch.

On this page