29 lines
775 B
Nix
29 lines
775 B
Nix
|
{ config, pkgs, ... }: {
|
||
|
home-manager.users.agatha = {
|
||
|
# Lockscreen
|
||
|
services.betterlockscreen = {
|
||
|
enable = true;
|
||
|
arguments = [ "dimblur" ];
|
||
|
};
|
||
|
|
||
|
# Update lockscreen wallpaper after locking
|
||
|
xdg.configFile."betterlockscreen/custom-post.sh".text =
|
||
|
"betterlockscreen -u ${
|
||
|
config.environment.graphical.colorschemes."${config.environment.graphical.theme.name}".image
|
||
|
}";
|
||
|
|
||
|
# 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";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|