From c17524e35856d23860b4a29b10e523cdbc32b7b9 Mon Sep 17 00:00:00 2001 From: Erik Simon Date: Thu, 6 Aug 2026 03:32:16 +0200 Subject: [PATCH] terra: hyprchrome glow/shadow, borderless windows, warmer accents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that the plugin draws its own outline and glow, hyprland's own border is redundant — border_size 0 and let hyprchrome own the window edge (outline_size 2 in fg_color). Fill in the rest of its knobs: glow 12/0.85, shadow 24 offset {4,8} in bg_color. Accents go warm: bg_accent to a muted red (963c38) and a new fg_accent_alt (ff9d42) so the active-border gradient runs amber->orange instead of amber->background. Colour literals lowercased for consistency. Also re-pick the placeholder wallpaper, and drop the comment explaining hyprland's lua gradient table format — the surviving call site is now the only one and reads plainly enough. Co-Authored-By: Claude Opus 5 --- hosts/terra/home/hyprland.nix | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/hosts/terra/home/hyprland.nix b/hosts/terra/home/hyprland.nix index 220062d..4c157f0 100644 --- a/hosts/terra/home/hyprland.nix +++ b/hosts/terra/home/hyprland.nix @@ -36,7 +36,7 @@ let # here rather than at runtime, since hyprpaper has no built-in "random" # mode; re-pick and rebuild (or swap in real per-monitor selection) when # this stops being a placeholder. - wallpaper = "/mnt/hdd_01/data/Pictures/Wallhaven/wallhaven-g7jg63.png"; + wallpaper = "/mnt/hdd_01/data/Pictures/Wallhaven/wallhaven-4yjyd4.png"; # Dispatchers → the new hl.dsp.* API (signatures verified against hyprland # 0.55's src/config/lua/bindings/LuaBindingsDispatchers.cpp). @@ -93,9 +93,10 @@ in settings = { # ---- colours (from colors.conf) ---- fg_color = { _var = "rgba(eeeeeeff)"; }; - fg_accent = { _var = "rgba(FFD063ff)"; }; - bg_color = { _var = "rgba(0F1012ff)"; }; - bg_accent = { _var = "rgba(40382fff)"; }; + fg_accent = { _var = "rgba(ffd063ff)"; }; + fg_accent_alt = { _var = "rgba(ff9d42ff)"; }; + bg_color = { _var = "rgba(0f1012ff)"; }; + bg_accent = { _var = "rgba(963c38ff)"; }; # ---- monitors ---- monitor = [ @@ -115,16 +116,11 @@ in debug.disable_logs = false; general = { - border_size = 1; + border_size = 0; col = { inactive_border = lua "bg_accent"; - # Gradient: hyprland's lua gradient type (CLuaConfigGradient::parse) - # takes either a plain colour string or a table with a `colors` - # array (1+ entries) and an optional `angle` in DEGREES. The list - # entries may be literal "rgba(...)" strings or, as here, the - # `_var` locals declared above rendered raw via mkLuaInline. active_border = { - colors = [ (lua "fg_accent") (lua "bg_accent") ]; + colors = [ (lua "fg_accent") (lua "fg_accent_alt") ]; angle = 45; }; }; @@ -162,7 +158,16 @@ in allow_workspace_cycles = true; }; - plugin.hyprchrome.enabled = true; + plugin.hyprchrome = { + enabled = true; + glow_size = 12; + glow_strength = 0.85; + shadow_size = 24; + shadow_color = lua "bg_color"; + shadow_offset = lua "{ 4, 8 }"; + outline_size = lua "2"; + outline_color = lua "fg_color"; + }; }; # ---- animations ----