Properly configure swaylock

This commit is contained in:
Julian Mutter 2025-04-25 15:42:09 +02:00
parent 68c37c0f42
commit 7d18d2bd50
3 changed files with 5 additions and 36 deletions

View File

@ -354,7 +354,7 @@ in
swaylock = lib.getExe config.programs.swaylock.package; swaylock = lib.getExe config.programs.swaylock.package;
in in
lib.optionals config.programs.swaylock.enable [ lib.optionals config.programs.swaylock.enable [
"$mod,TAB,exec,${swaylock} --ignore-empty-password --color=000000 --daemonize" "$mod,TAB,exec,${swaylock} --daemonize"
] ]
) )
++ ++

View File

@ -41,8 +41,7 @@ in
[ [
{ {
timeout = lockTime; timeout = lockTime;
# command = "${swaylock} -i ${config.wallpaper} --daemonize --grace 15 --grace-no-mouse"; command = "${swaylock} --daemonize --grace 15";
command = "${swaylock} --daemonize --grace 15 --grace-no-mouse";
} }
] ]
++ ++

View File

@ -9,40 +9,10 @@ in
{ {
programs.swaylock = { programs.swaylock = {
enable = true; enable = true;
package = pkgs.swaylock-effects;
settings = { settings = {
effect-blur = "20x3"; color = "000000";
fade-in = 0.1; ignore-empty-password = true;
indicator-idle-visible = false;
# font = config.fontProfiles.regular.name;
# font-size = config.fontProfiles.regular.size + 3;
line-uses-inside = true;
disable-caps-lock-text = true;
indicator-caps-lock = true;
indicator-radius = 40;
indicator-idle-visible = true;
indicator-y-position = 1000;
# TODO customize
# ring-color = "${colors.surface_bright}";
# inside-wrong-color = "${colors.on_error}";
# ring-wrong-color = "${colors.error}";
# key-hl-color = "${colors.tertiary}";
# bs-hl-color = "${colors.on_tertiary}";
# ring-ver-color = "${colors.secondary}";
# inside-ver-color = "${colors.on_secondary}";
# inside-color = "${colors.surface}";
# text-color = "${colors.on_surface}";
# text-clear-color = "${colors.on_surface_variant}";
# text-ver-color = "${colors.on_secondary}";
# text-wrong-color = "${colors.on_surface_variant}";
# text-caps-lock-color = "${colors.on_surface_variant}";
# inside-clear-color = "${colors.surface}";
# ring-clear-color = "${colors.primary}";
# inside-caps-lock-color = "${colors.on_tertiary}";
# ring-caps-lock-color = "${colors.surface}";
# separator-color = "${colors.surface}";
}; };
}; };
} }