Anthony Rodriguez
861c658590
As a first step towards getting rid of home-manager and going towards a cleaner, more concise configuration, I decided to move back the styling to their respective home-manager modules. Since I'm not planning to share my styling module anymore, as it is very specific to my config, I just decided to merge everything together. commit078334af48
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Sun Jan 19 20:41:14 2025 +0100 treewide: finish moving rest of styling to their respective hm modules commit57432a9655
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 12:13:54 2025 +0100 treewide: move regreet styling out of module commit6fef9e0a76
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 12:10:33 2025 +0100 treewide: move swaync styling out of module commit2f4a8433c7
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 12:06:33 2025 +0100 treewide: move nvf styling out of module commita315915298
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 12:02:58 2025 +0100 treewide: move hyprlock styling out of module commit0fe6f67b20
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 12:02:49 2025 +0100 modules/nix/core/home-manager: import lib' in extraSpecialArgs commite09569b921
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 11:55:05 2025 +0100 treewide: move hyprland styling out of module commiteb25ce0c43
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 11:43:35 2025 +0100 modules/nix/style/modules: remove styling for unused programs commitefb6b91ce1
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 11:00:54 2025 +0100 treewide: move foot styling out of module commit4c06a66b5e
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 10:56:05 2025 +0100 treewide: move fish styling out of module commitb3a03e5e9b
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Jan 17 10:47:43 2025 +0100 treewide: move discord styling out of module
114 lines
2.9 KiB
Nix
114 lines
2.9 KiB
Nix
{
|
|
lib,
|
|
lib',
|
|
inputs,
|
|
pkgs,
|
|
osConfig,
|
|
...
|
|
}: let
|
|
styleCfg = osConfig.local.style;
|
|
rgbaPalette = builtins.mapAttrs (_: c: (lib'.rgba c 1)) styleCfg.scheme.palette;
|
|
in {
|
|
config = lib.mkIf osConfig.local.modules.hyprland.enable {
|
|
programs.hyprlock = {
|
|
enable = true;
|
|
package = inputs.hyprlock.packages.${pkgs.system}.hyprlock;
|
|
|
|
settings = lib.mkMerge [
|
|
{
|
|
general = {
|
|
disable_loading_bar = true;
|
|
hide_cursor = true;
|
|
};
|
|
}
|
|
|
|
(with rgbaPalette;
|
|
lib.mkIf styleCfg.enable {
|
|
background = [
|
|
{
|
|
path = "screenshot";
|
|
blur_passes = 3;
|
|
blur_size = 8;
|
|
}
|
|
];
|
|
|
|
label = [
|
|
{
|
|
monitor = "";
|
|
text = "Layout: $LAYOUT";
|
|
font_size = 25;
|
|
color = base05;
|
|
|
|
position = "30, -30";
|
|
halign = "left";
|
|
valign = "top";
|
|
}
|
|
{
|
|
monitor = "";
|
|
text = "$TIME";
|
|
font_size = 90;
|
|
color = base05;
|
|
|
|
position = "-30, 0";
|
|
halign = "right";
|
|
valign = "top";
|
|
}
|
|
{
|
|
monitor = "";
|
|
text = "cmd[update:43200000] date +\"%A, %d %B %Y\"";
|
|
font_size = 25;
|
|
color = base05;
|
|
|
|
position = "-30, -150";
|
|
halign = "right";
|
|
valign = "top";
|
|
}
|
|
];
|
|
|
|
image = {
|
|
monitor = "";
|
|
path = "${styleCfg.avatar}"; # Replace with your avatar path
|
|
size = 100;
|
|
border_color = base0D;
|
|
|
|
position = "0, 75";
|
|
halign = "center";
|
|
valign = "center";
|
|
};
|
|
|
|
input-field = [
|
|
{
|
|
monitor = "";
|
|
|
|
size = "300, 60";
|
|
outline_thickness = 4;
|
|
dots_size = 0.2;
|
|
dots_spacing = 0.2;
|
|
dots_center = true;
|
|
|
|
outer_color = base0D;
|
|
inner_color = base02;
|
|
font_color = base05;
|
|
|
|
fade_on_empty = false;
|
|
|
|
# the span elements still use #RRGGBB, so we use scheme directly
|
|
placeholder_text = "<span foreground=\"#${styleCfg.scheme.palette.base05}\"><i> Logged in as </i><span foreground=\"#${styleCfg.scheme.palette.base0D}\">$USER</span></span>";
|
|
|
|
hide_input = false;
|
|
check_color = base0D;
|
|
fail_color = base08;
|
|
|
|
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
|
|
capslock_color = base0E;
|
|
|
|
position = "0, -47";
|
|
halign = "center";
|
|
valign = "center";
|
|
}
|
|
];
|
|
})
|
|
];
|
|
};
|
|
};
|
|
}
|