xmobar & xmonad optimierung
This commit is contained in:
19
home/services/xscreenlocker.nix
Normal file
19
home/services/xscreenlocker.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
let images = pkgs.callPackage ../extras/images.nix { };
|
||||
in {
|
||||
home.packages = with pkgs; [ xsecurelock ];
|
||||
|
||||
home.sessionVariables = rec {
|
||||
XSECURELOCK_COMPOSITE_OBSCURER = 0;
|
||||
XSECURELOCK_PASSWORD_PROMPT = "asterisks";
|
||||
};
|
||||
|
||||
services.screen-locker = {
|
||||
enable = true;
|
||||
inactiveInterval = 1;
|
||||
lockCmd = "${pkgs.xsecurelock}/bin/xsecurelock";
|
||||
xautolock.extraOptions = [ "Xautolock.killer: systemctl suspend" ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user