niri: make focus ring the inverse of the average of the background color

This commit is contained in:
2025-09-15 14:59:23 -04:00
parent 6d77b3a944
commit 6a5afb5e35
2 changed files with 32 additions and 1 deletions

View File

@@ -5,6 +5,9 @@
inputs,
...
}:
let
invert_image_avg = pkgs.callPackage ../util/inverse_color.nix;
in
{
imports = [
inputs.niri.homeModules.config
@@ -51,7 +54,9 @@
focus-ring = {
enable = true;
active = {
color = "#bf7778";
color = builtins.readFile (invert_image_avg {
src = ../wallpaper.png;
});
};
};
};