Skip to content

Installation ​

Hazel runs on Linux. Pick one of the two ways below, then start it.

Install script ​

sh
curl -fsSL https://hazel.deniz.blue/install.sh | sh

It downloads the latest release build for your machine from GitHub, checks it against the release's checksums, and installs:

  • hazel and hazel-session to /usr/local/bin
  • hazel.desktop to /usr/share/wayland-sessions, so display managers list Hazel

It asks before it uses sudo, and prints what it put where and how to remove it. Read it first if you like. HAZEL_BIN_DIR and HAZEL_SESSION_DIR change where the files go.

Release builds are for x86_64. On other machines, build from source.

From source ​

Hazel is written in Rust. On Arch:

sh
sudo pacman -S --needed rust git pkgconf libinput libxkbcommon mesa seatd systemd-libs wayland libglvnd
git clone https://github.com/deniz-blue/hazel-wm
cd hazel-wm
cargo build --release

Then install the binary, the session script and the session file:

sh
sudo install -Dm755 target/release/hazel /usr/local/bin/hazel
sudo install -Dm755 packaging/hazel-session /usr/local/bin/hazel-session
sudo install -Dm644 packaging/hazel.desktop /usr/share/wayland-sessions/hazel.desktop

On other distributions you need the development packages for libinput, libxkbcommon, libgbm, libseat and libudev, plus a recent stable Rust.

Starting Hazel ​

Write a config first. Hazel needs ~/.config/hazel/main.lua and won't start without it. Your first config has one to copy, and shows how to try it nested in your current session before you log in.

  • From a display manager such as GDM, SDDM or greetd: pick Hazel in the session list.
  • From a tty: log in and run hazel-session.

hazel-session starts Hazel with its log in ~/.local/state/hazel/hazel.log. The log of the session before is kept as hazel.log.old, so after a crash you can still read it when you log back in.

Hazel gets the GPU and input devices through logind, which Arch has by default. Without systemd, run seatd and add yourself to its group.

Text drawn by Hazel, such as title bars, uses the fonts installed on the system.