1
Fork 0

light gruvbox

This commit is contained in:
prescientmoon 2024-05-01 17:51:24 +02:00
parent 4808dbb549
commit 9f751afced
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
11 changed files with 73 additions and 99 deletions
home/features/wayland/hyprland

View file

@ -1,11 +1,4 @@
{ pkgs, lib, config, ... }:
let
hyprland-monitors = lib.concatStringsSep "\n" (lib.forEach config.satellite.monitors (m: ''
monitor=${m.name},${toString m.width}x${toString m.height}@${toString m.refreshRate},${toString m.x}x${toString m.y},1
${lib.optionalString (m.workspace != null) "workspace=${m.name},${m.workspace}"}
''));
in
{
imports = [ ../global.nix ./hyprpaper.nix ];
@ -13,9 +6,44 @@ in
wayland.windowManager.hyprland = {
enable = true;
package = pkgs.hyprland;
extraConfig = ''
${builtins.readFile ./hyprland.conf}
${hyprland-monitors}
'';
extraConfig = builtins.readFile ./hyprland.conf;
settings = {
# {{{ Decoration
decoration = {
rounding = config.satellite.theming.rounding.radius;
active_opacity = 1;
inactive_opacity = 1;
blur = {
enabled = config.satellite.theming.blur.enable;
ignore_opacity = true;
xray = true;
size = config.satellite.theming.blur.size;
passes = config.satellite.theming.blur.passes;
contrast = config.satellite.theming.blur.contrast;
brightness = config.satellite.theming.blur.brightness;
noise = 0.05;
};
};
# }}}
# {{{ Monitors
# Configure monitor properties
monitor = lib.forEach config.satellite.monitors (m:
lib.concatStringsSep "," [
m.name
"${toString m.width}x${toString m.height}@${toString m.refreshRate}"
"${toString m.x}x${toString m.y}"
"1"
]
);
# Map monitors to workspaces
workspace = lib.lists.concatMap
(m: lib.lists.optional (m.workspace != null) "${m.name},${m.workspace}")
config.satellite.monitors;
# }}}
};
};
}

View file

@ -8,23 +8,6 @@ general {
resize_on_border = true # Click on borders with the mouse to resize
}
decoration {
rounding = 8 # TODO: inject from nix
active_opacity = 1
inactive_opacity = 1
blur {
enabled = true
ignore_opacity = true
xray = true
size = 10
passes = 4
contrast = 1.2
brightness = 1.0
noise = 0.05
}
}
# Blur extra surfaces
layerrule = blur,gtk-layer-shell
layerrule = blur,anyrun