[idle;lock] Switches to swaylock

This commit is contained in:
2025-05-28 12:23:14 -07:00
parent efab3866c2
commit aa6402cf7c
6 changed files with 96 additions and 93 deletions

View File

@@ -1,21 +1,12 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [
./swaync.nix
];
home.packages = with pkgs; [
hyprlock # lock screen
# swayidle # lock on idle
# swayosd # volume pop-up
# swaynotificationcenter # notifications
# hyprpolkitagent # Privilege managent
# hyprshot # Screenshot utility
./swaylock.nix
];
services.swayosd = {
@@ -23,16 +14,6 @@
topMargin = 0.7;
};
services.swayidle = {
enable = true;
events = [
{
event = "before-sleep";
command = "hyprlock";
}
];
};
# Enable sway config generation for home.pointerCursor
home.pointerCursor.sway.enable = true;