Coming from Hyprland or niri
In Hyprland and niri you set options and the compositor does the rest. In Hazel the config is a Lua program, and the behaviour you know is a few lines of it. Most rows below link to a recipe that has those lines.
| Hyprland | niri | Hazel |
|---|---|---|
bind = SUPER, Return, exec, foot | Mod+Return { spawn "foot"; } | bind(mod, "Return", function() spawn("foot") end), from your first config |
bindm = SUPER, mouse:272, movewindow | drag with Mod held | a pointer_button handler: Dragging windows |
exec-once = waybar | spawn-at-startup "waybar" | if not wm.is_reload then spawn("waybar") end |
exec = ... | spawn(...) at the top level, which runs on every reload | |
env = QT_QPA_PLATFORM,wayland | environment { } | spawn_env.QT_QPA_PLATFORM = "wayland": Session |
windowrule = float, class:pavucontrol | window-rule { match app-id=...; open-floating true; } | a check on window.app_id when the window first draws: Window rules |
monitor = DP-1, 2560x1440@144, 0x0, 1 | output "DP-1" { mode ...; position ...; } | an added handler on wm.outputs: Monitor layout |
input { kb_layout = us } | input { keyboard { xkb { layout "us"; } } } | keyboard.layout = "us": Keyboard layout |
natural_scroll = true | natural-scroll | a pointer_scroll handler: Natural scrolling |
gaps_in, border_size, col.active_border | gaps, focus-ring, border | gap in Tiling, and Borders |
rounding | geometry-corner-radius | window.box.corner_radius = 8 |
inactive_opacity | Focus fades | |
bezier, animation = windows, ... | animations { window-movement { spring ...; } } | Anim.spring and Anim.tween on any property: Animation |
general:layout = dwindle or master | the scrolling layout | a function from area and windows to rectangles: Layouts |
bind = SUPER, 1, workspace, 1 | Mod+1 { focus-workspace 1; } | Workspaces |
hyprctl dispatch ..., hyprctl clients | niri msg ... | hazel eval '<lua>': Debugging |
hyprctl reload | reloads on save | reloads on save, or wm:reload() |
| hyprlock, hypridle | swaylock, swayidle | the same programs: Panels and lock screens |
| XWayland | xwayland-satellite | xwayland-satellite: X apps |
Nothing happens by default. A config with no new_window handler leaves every window at the top-left corner, unfocused. That's why your first config is the base every recipe builds on.
Not there yet: blur, touchpad settings such as tap-to-click and pointer acceleration, and turning monitors off when idle.