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 stableFedora
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-develDebian 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-devIf 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.
Recommended
| Package | For |
|---|---|
A terminal, such as foot or kitty | Opened automatically by Super+Return |
xwayland | X11 apps |
xdg-desktop-portal, xdg-desktop-portal-gtk, xdg-desktop-portal-wlr | File dialogs and screen sharing |
Build
git clone -b main https://github.com/naurissteins/Sweets.git
cd Sweets
cargo build --release --locked --workspaceThis 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/sweetsSuper+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.confOn 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-reloadNow see First Launch.