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