light gruvbox
This commit is contained in:
parent
4808dbb549
commit
9f751afced
11 changed files with 73 additions and 99 deletions
home/features/wayland/hyprland
|
@ -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;
|
||||
# }}}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue