-- Monitors, environment, look and feel, input. -- API reference: the official example (hyprland.lua) shipped with Hyprland. local nix = require("nixvars") ------------------ ---- MONITORS ---- ------------------ -- Any output, native mode, placed automatically. Use mode = "highrr" to prefer -- the highest refresh rate instead. hl.monitor({ output = "", mode = "preferred", position = "auto", scale = "auto", }) ------------------------------- ---- ENVIRONMENT VARIABLES ---- ------------------------------- hl.env("XCURSOR_SIZE", tostring(nix.cursorSize)) hl.env("HYPRCURSOR_SIZE", tostring(nix.cursorSize)) if nix.cursorTheme ~= "" then hl.env("XCURSOR_THEME", nix.cursorTheme) end ----------------------- ---- LOOK AND FEEL ---- ----------------------- -- Gaps, rounding, shadow and blur follow the Noctalia documentation so the -- shell's bar and panels sit well on top of the windows. hl.config({ general = { gaps_in = 5, gaps_out = 10, border_size = 2, col = { -- Catppuccin Mocha: mauve to blue, surface1 when unfocused. active_border = { colors = { "rgba(cba6f7ee)", "rgba(89b4faee)" }, angle = 45 }, inactive_border = "rgba(45475aaa)", }, resize_on_border = true, -- Only windows with the `immediate` rule (see 30-rules.lua) tear. allow_tearing = true, layout = "dwindle", }, decoration = { rounding = 20, rounding_power = 2, shadow = { enabled = true, range = 4, render_power = 3, color = 0xee1a1a1a, }, blur = { enabled = true, size = 3, passes = 2, vibrancy = 0.1696, }, }, animations = { enabled = true, }, dwindle = { preserve_split = true, }, master = { new_status = "master", }, misc = { -- Noctalia draws the wallpaper. force_default_wallpaper = 0, disable_hyprland_logo = true, }, ecosystem = { no_update_news = true, no_donation_nag = true, }, }) --------------- ---- INPUT ---- --------------- hl.config({ input = { kb_layout = nix.kbLayout, kb_options = nix.kbOptions, numlock_by_default = true, follow_mouse = 1, sensitivity = 0, }, }) -- Persistent workspaces keep the empty ones visible in Noctalia's indicator. for i = 1, 5 do hl.workspace_rule({ workspace = tostring(i), persistent = true }) end