This commit is contained in:
twoneis 2024-03-16 14:48:47 +01:00
parent 840f398d84
commit 19dcd782a3
3 changed files with 41 additions and 1 deletions

View file

@ -95,4 +95,7 @@
# Use zsh # Use zsh
programs.zsh.enable = true; programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh; users.defaultUserShell = pkgs.zsh;
# Allow swaylock to PAM authentication
security.pam.services.swaylock = {};
} }

View file

@ -52,4 +52,41 @@
backgroundColor = "#191724ee"; backgroundColor = "#191724ee";
borderColor = "#26233a"; borderColor = "#26233a";
}; };
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
settings = {
ignore-empty-password = true;
screenshots = true;
clock = true;
submit-on-touch = true;
indicator = true;
indicator-caps-lock = true;
indicator-radius = 100;
indicator-thickness = 4;
inside-color = "#26233aaa";
inside-clear-color = "#908caaaa";
inside-caps-lock-color = "#ebbcbaaa";
inside-ver-color = "#9ccfd8aa";
inside-wrong-color = "#eb6f92aa";
line-uses-inside = true;
ring-color = "#1f1d2e";
ring-clear-color = "#6e6a86";
ring-caps-lock-color = "#f6c177";
ring-ver-color = "#31748f";
ring-wrong-color = "#eb6f92";
seperator-color = "#191724";
key-hl-color = "#c4a7e7";
bs-hl-color = "#eb6f92";
caps-lock-key-hl-color = "#c4a7e7";
caps-lock-bs-hl-color = "#eb6f92";
text-color = "#e0def4";
text-clear-color = "#e0def4";
text-caps-lock-color = "#e0def4";
text-ver-color = "#e0def4";
text-wrong-color = "#e0def4";
effect-blur = "30x10";
};
};
} }

View file

@ -133,6 +133,6 @@ binds {
Print { screenshot-screen; } Print { screenshot-screen; }
Mod+Shift+Ctrl+S { screenshot-window; } Mod+Shift+Ctrl+S { screenshot-window; }
Mod+Shift+L { spawn "swaylock"; }
Mod+Shift+Q { quit; } Mod+Shift+Q { quit; }
} }