Skip to content

Getting started ​

lys-shell is a Wayland desktop shell written in Go on lys-ui. It runs on any compositor with wlr-layer-shell and draws a bar, dropdowns, notifications, an OSD, a launcher and the wallpaper. It is also an xdg-desktop-portal backend. Workspace modules exist for lys-wm, Hyprland, Niri, Mango and Sway.

lys-shell's bar and dropdowns on a desktop

lys-settings editing lys-shell's config

Install ​

Install covers the packages, the tarball and the flake; NixOS has the module options. lys-shell's packages install the binaries, the systemd user units, the portal and D-Bus files, the icons and shell completions, and the document thumbnailer lys-docthumb at /usr/libexec/lys-shell/lys-docthumb.

Build from source ​

The build needs Go. The binaries use no cgo. go.mod names the Go version; any go from 1.21 downloads that toolchain itself.

sh
git clone https://github.com/stubbedev/lys
cd lys
CGO_ENABLED=0 go build -o dist/ ./shell/cmd/...
CGO_ENABLED=0 GOEXPERIMENT=nogreenteagc go build -o dist/ ./desktop/cmd/lys-docthumb
sudo install -Dm755 dist/lys-shell dist/lys-lock -t /usr/local/bin
sudo install -Dm755 dist/lys-docthumb -t /usr/local/libexec/lys-shell
lys-shell icons setup

lys-shell finds lys-docthumb, which draws documents' thumbnails, next to its binary or in <prefix>/libexec/lys-shell/; without it documents keep their icon.

lys-shell icons setup copies the bundled icons into ~/.local/share/lys-shell/icons. The packages install them system-wide instead.

Runtime dependencies ​

lys-shell loads these libraries at runtime:

LibraryUsed for
VulkanGPU rendering, zero-copy screen sharing, the screen recorder. Without it, rendering and screen sharing fall back to the CPU.
VA-APIThe screen recorder on GPUs whose Vulkan driver has no video encoder (Intel Xe2).

The recorder needs a GPU that encodes H.264 through Vulkan Video or VA-API; otherwise it reports why it cannot record. Screen sharing talks to the PipeWire daemon (1.0 or newer) directly.

Modules talk to these services. Install the ones you use:

ServiceModules
PipeWire with WirePlumber and pipewire-pulseaudio
NetworkManagernetwork
BlueZbluetooth
lys-powerpower-profiles
tzdata (zone.tab, tzdata.zi)nightlight auto-schedule without a pinned place: it follows the time zone's city
sh
sudo pacman -S --needed vulkan-icd-loader libva intel-media-driver
sudo pacman -S --needed bluez bluez-utils networkmanager \
  pipewire wireplumber pipewire-pulse
sudo systemctl enable --now bluetooth NetworkManager
sh
sudo apt install libvulkan1 libva2 libva-drm2 intel-media-va-driver mesa-va-drivers
sudo apt install dbus-user-session bluez network-manager \
  pipewire-pulse wireplumber
sudo systemctl enable --now bluetooth NetworkManager
sh
sudo dnf install vulkan-loader libva intel-media-driver mesa-va-drivers
# Workstation ships these; Minimal and Server need them:
sudo dnf install pipewire-pulseaudio wireplumber NetworkManager bluez

Airplane mode ​

The dashboard's airplane toggle soft-blocks every transmitting radio (WLAN, Bluetooth, UWB, WiMAX, WWAN, NFC) through the kernel's /dev/rfkill. GPS and FM receivers are left alone. The block is kernel state: it outlasts a shell restart, the toggle shows it as it is, and systemd-rfkill restores it after a reboot. The toggle is active only while every one of those radios is soft-blocked. A radio blocked only by a hardware switch does not count.

The shell needs read and write access to /dev/rfkill, and no root. systemd's 70-uaccess.rules tags the device uaccess, so logind gives the user of the active local session access to it. A session that logind does not track as active and local (a session started outside a display manager or greeter, or over SSH) gets no access. The toggle then shows the refused write and goes back to the radios' real state. In that case, register the session with logind (pam_systemd), or give the user access through a udev rule, for example KERNEL=="rfkill", GROUP="rfkill", MODE="0664" plus membership of that group.

Run ​

sh
systemctl --user enable --now lys-shell.service   # packaged install
lys-shell panel start                             # or: start it in the background
lys-shell shell                                   # or: run it in the foreground, logging to the terminal

lys-shell panel status, panel restart and panel stop manage a running shell. Only one shell runs per session.

Configure ​

lys-shell reads $XDG_CONFIG_HOME/lys-shell/config.yaml (default ~/.config/lys-shell/config.yaml) and applies changes on save. A missing file is created holding only the schema modeline; every field has a default. See Editing config and the config reference.

lys-shell panel settings opens lys-settings, which edits the same config live.

Lock screen ​

Locking is done by lys-login, which must be on the PATH. lys-shell lock, logind's Lock signal and login.lock.lock-on-start each start lys-login lock as its own process, which survives a shell restart. If that process dies while the session is still locked, the shell starts it again. On Hyprland this needs hl.config({ misc = { allow_session_lock_restore = true } }).

Released under the MIT License.