enable lockscreen

This commit is contained in:
2026-02-28 21:22:50 +01:00
parent 7817cb19f2
commit 976d6cf554
6 changed files with 55 additions and 21 deletions

View File

@@ -42,6 +42,7 @@
};
};
};
programs.home-manager.enable = true;
nixpkgs.config = {

View File

@@ -58,7 +58,7 @@
:space-evenly false
(button
:class "${idle_inhibitor == 'start' ? 'idleOn' : 'idleOff' }"
:onclick "systemctl --user is-active idle-inhibitor.service && systemctl --user stop idle-inhibitor.service || systemctl --user start idle-inhibitor.service"
:onclick "systemctl is-active idle-inhibitor.service && systemctl stop idle-inhibitor.service || systemctl start idle-inhibitor.service"
(label :text "${idle_inhibitor == 'start' ? '󰈈' : '󰛐' }"))))
;; /-- Audio -->
@@ -196,9 +196,6 @@
:class "text"
:text "${date}")))
;; /-- River State -->
(defvar ws1 "ws-empty")
@@ -253,6 +250,3 @@
(label
:class "text separator"
:text "⦁"))

View File

@@ -31,6 +31,17 @@
blur_size = 3;
}
];
auth = {
fingerprint = {
enabled = true;
# Optional: Customize messages
ready_message = "(Scan fingerprint to unlock)";
present_message = "Scanning fingerprint";
retry_delay = 250;
};
};
input-field = [
{
size = "200, 50";

View File

@@ -8,14 +8,16 @@
lock_cmd = "/run/current-system/sw/bin/pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
before_sleep_cmd = "/run/current-system/sw/bin/loginctl lock-session";
};
listener = [{
timeout = 300;
on-timeout = "${pkgs.hyprlock}/bin/hyprlock";
}{
timeout = 600;
on-timeout = "${pkgs.systemd}/bin/systemctl suspend";
}];
listener = [
{
timeout = 300;
on-timeout = "${pkgs.hyprlock}/bin/hyprlock";
}
{
timeout = 600;
on-timeout = "${pkgs.systemd}/bin/systemctl suspend";
}
];
};
};
}