This commit is contained in:
mjallen18
2025-07-29 16:41:04 -05:00
parent 7e35a27b2e
commit 04ef2a4b8c
10 changed files with 77 additions and 9 deletions

View File

@@ -140,7 +140,7 @@ with lib;
};
suspendTimer = mkOption {
type = with types; int;
default = 1500;
default = 1800;
};
};
};

View File

@@ -67,6 +67,8 @@ in
xorg.xhost
xsettingsd
xwayland
pkgs.mjallen.pipewire-python
];
};
}

View File

@@ -12,7 +12,7 @@ in
config = lib.mkIf cfg.enable {
programs.hyprlock = {
enable = true;
enable = false;
settings = {
background = [
{

View File

@@ -61,7 +61,30 @@ in
modules-center = [ "hyprland/window" ];
modules-right = cfg.modules-right;
modules-right = [
"tray"
"custom/left-end"
"temperature"
"temperature#gpu"
"keyboard-state#capslock"
"keyboard-state#numlock"
"wireplumber#sink"
"bluetooth"
"network"
"idle_inhibitor"
"custom/right-end"
"custom/left-end"
"clock"
"battery"
"custom/weather"
"custom/right-end"
];
# modules-right = [
# "tray"
# "custom/left-end" ] ++
# cfg.modules-right ++
# [ "custom/right-end" ];
# Module Definitions
# Left
@@ -290,6 +313,16 @@ in
return-type = "json";
markup = "pango";
};
"custom/left-end" = {
format = " ";
tooltip = false;
};
"custom/right-end" = {
format = " ";
tooltip = false;
};
} // cfg.extraModules;
};
@@ -373,7 +406,7 @@ in
${defaultBorderRadius}
${defaultCenterOptions}
margin-left: 4rem;
margin-right: 4rem;
margin-right: ${toString cfg.windowOffset}rem;
}
/* make window module transparent when no windows present */
@@ -529,6 +562,18 @@ in
}
/* ------------- */
#custom-left-end {
background-color: ${nord.polarNight.nord0};
${defaultOpacity}
${borderLeft}
}
#custom-right-end {
background-color: ${nord.polarNight.nord0};
${defaultOpacity}
${borderRight}
}
''
+ cfg.extraModulesStyle or '''';
};

View File

@@ -29,6 +29,11 @@ with lib;
default = "";
};
windowOffset = mkOption {
type = types.int;
default = 4;
};
# Waybar modules config
# modules = mkOption {
# type = types.submodule {