fix: Hyprlock

This commit is contained in:
Peritia 2026-03-02 16:42:36 +01:00
parent 240d02a58e
commit fa809ab749
3 changed files with 36 additions and 36 deletions

View file

@ -7,11 +7,24 @@
root = nixosVista; root = nixosVista;
cfg = root.hyprlock; cfg = root.hyprlock;
hyprlockConfig = ''
in {
config = lib.mkIf cfg.enable {
# warnings = [">>> HYPRLOCK ACTIVE <<<"];
programs.hyprlock = {
enable = true;
settings = {
general = { general = {
disable_loading_bar = true; # does not exsist:
grace = 0; # disable_loading_bar = true;
# grace = 0;
hide_cursor = true; hide_cursor = true;
}; };
@ -84,18 +97,10 @@
valign = "center"; valign = "center";
} }
]; ];
''; };
in { };
config = lib.mkIf cfg.enable {
# warnings = [">>> HYPRLOCK ACTIVE <<<"];
programs.hyprlock = {
enable = true;
extraConfig = hyprlockConfig + "\n" + cfg.extraConfig;
};
}; };
} }

View file

@ -7,7 +7,7 @@
cfg = config.nixosVista; cfg = config.nixosVista;
in { in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
# warnings = [">>> fonts ACTIVE <<<"]; # warnings = [">>> fonts ACTIVE <<<"];
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
nerd-fonts.jetbrains-mono nerd-fonts.jetbrains-mono

View file

@ -85,9 +85,6 @@
preset = "default"; preset = "default";
extra = [ extra = [
# "bind = SUPER, RETURN, exec, kitty" # "bind = SUPER, RETURN, exec, kitty"
]; ];
}; };
@ -101,29 +98,27 @@
]; ];
}; };
windowRules = { windowRules = {
preset = "default"; preset = "default";
extra = [ extra = [
# Firefox Picture in Picture rules # Firefox Picture in Picture rules
"windowrule = float 1, match:class ^(librewolf)$, match:title ^(Picture-in-Picture)$" "windowrule = float 1, match:class ^(librewolf)$, match:title ^(Picture-in-Picture)$"
"windowrule = size 800 450, match:class ^(librewolf)$, match:title ^(Picture-in-Picture)$" "windowrule = size 800 450, match:class ^(librewolf)$, match:title ^(Picture-in-Picture)$"
"windowrule = pin 1, match:class ^(librewolf)$, match:title ^(Picture-in-Picture)$" "windowrule = pin 1, match:class ^(librewolf)$, match:title ^(Picture-in-Picture)$"
# "windowrule = nofullscreen 1, match:class ^(librewolf)$, match:title ^(Picture-in-Picture)$" # "windowrule = nofullscreen 1, match:class ^(librewolf)$, match:title ^(Picture-in-Picture)$"
]; ];
}; };
customBottom = ''
input {
kb_layout = de,us
kb_options = grp:alt_shift_toggle
}
'';
customBottom = ''
input {
kb_layout = de,us
kb_options = grp:alt_shift_toggle
}
'';
}; };
hyprlock.enable = true;
hyprlock.enable = true;
########################################################## ##########################################################
# Waybar # Waybar