diff --git a/modules/modules/desktop/wm.nix b/modules/modules/desktop/wm.nix index dd8ee94..bf53899 100644 --- a/modules/modules/desktop/wm.nix +++ b/modules/modules/desktop/wm.nix @@ -17,6 +17,10 @@ in monitors = mkDefault 1; }; + common.wm = { + locker = pkgs.xsecurelock; + }; + # Compositor to prevent screen tearing services.picom = { enable = true; @@ -24,6 +28,11 @@ in vSync = true; }; + programs.xss-lock = { + enable = true; + lockerCommand = lib.getExe config.common.wm.locker; + }; + # Automatically attach/detatch connected/disconnected monitors services.autorandr = { enable = config.info.graphical && !config.info.stationary; @@ -53,7 +62,7 @@ in xprop ]) - xsecurelock + config.common.wm.locker blugon ]; } diff --git a/users/infinidoge/config/default.nix b/users/infinidoge/config/default.nix index cee7360..7143aea 100644 --- a/users/infinidoge/config/default.nix +++ b/users/infinidoge/config/default.nix @@ -39,6 +39,7 @@ with lib; }; wallpaper_mode = "fill"; firefox = config.programs.firefox.package.meta.mainProgram; + locker = main.common.wm.locker.meta.mainProgram; }; "blugon".source = ./blugon; diff --git a/users/infinidoge/config/qtile/config.py b/users/infinidoge/config/qtile/config.py index 4617b68..7b03887 100644 --- a/users/infinidoge/config/qtile/config.py +++ b/users/infinidoge/config/qtile/config.py @@ -283,7 +283,7 @@ keys = [ # ), Key( [Keys.SUPER, Keys.CONTROL], "l", - lazy.spawn("xsecurelock"), + lazy.spawn("@locker@"), desc="Lock Screen", ),