nix-infra/common/fragments/graphical/lockscreen.nix

31 lines
854 B
Nix
Raw Normal View History

{ config, pkgs, ... }: {
home-manager.users.agatha = {
# Lockscreen
services.betterlockscreen = {
enable = true;
arguments = [ "dimblur" ];
};
# Update lockscreen wallpaper after locking
2023-10-06 20:12:22 +00:00
home.file.".config/betterlockscreen/custom-post.sh".text =
"betterlockscreen -u ${
config.environment.graphical.colorschemes."${config.environment.graphical.theme.name}".image
}";
2023-10-06 20:12:22 +00:00
home.file.".config/betterlockscreen/custom-post.sh".executable = true;
# Send a notification 10 seconds before locking
services.screen-locker.xautolock.extraOptions = [
"-notify 10"
"-notifier '${pkgs.xscreensaver}/bin/xscreensaver-command --activate'"
];
services.xscreensaver = {
enable = true;
settings = {
dpmsEnabled = "False";
mode = "off";
};
};
};
}