update swaylock settings
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
{ config, pkgs, host, ... }:
|
||||
let
|
||||
vars = import ../../../hosts/${host}/variables.nix;
|
||||
in
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.udev.extraRules = "";
|
||||
|
||||
environment.etc."swaylock/config".text = ''
|
||||
color=${config.lib.stylix.colors.base00}
|
||||
'';
|
||||
|
||||
environment.systemPackages = [ pkgs.swaylock ];
|
||||
# swaylock-effects config is managed via home-manager (modules/home/swaylock.nix)
|
||||
# PAM auth is in security.nix
|
||||
environment.systemPackages = [ pkgs.swayidle ];
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ in
|
||||
./zoxide.nix
|
||||
./zsh
|
||||
]
|
||||
++ (if desktopEnvironment == "niri" then [ ./niri ] else [ ])
|
||||
++ (if desktopEnvironment == "niri" then [ ./niri ./swaylock.nix ] else [ ])
|
||||
++ (if helixEnable then [ ./evil-helix.nix ] else [ ])
|
||||
++ (if vscodeEnable then [ ./vscode.nix ] else [ ])
|
||||
++ (
|
||||
|
||||
@@ -4,7 +4,7 @@ _: {
|
||||
rofi.enable = false;
|
||||
hyprland.enable = false;
|
||||
hyprlock.enable = true;
|
||||
swaylock.enable = true;
|
||||
swaylock.enable = false;
|
||||
ghostty.enable = true;
|
||||
qt = {
|
||||
enable = true;
|
||||
|
||||
45
modules/home/swaylock.nix
Normal file
45
modules/home/swaylock.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
colors = config.lib.stylix.colors;
|
||||
in
|
||||
{
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
package = pkgs.swaylock-effects;
|
||||
settings = {
|
||||
screenshot = true;
|
||||
clock = true;
|
||||
indicator = true;
|
||||
indicator-radius = 100;
|
||||
indicator-thickness = 7;
|
||||
effect-blur = "7x5";
|
||||
effect-vignette = "0.5:0.5";
|
||||
grace = 2;
|
||||
fade-in = 0.2;
|
||||
|
||||
font = "Sans";
|
||||
timestr = "%H:%M";
|
||||
datestr = "%a, %b %e";
|
||||
|
||||
bs-hl-color = "${colors.base08}";
|
||||
key-hl-color = "${colors.base0B}";
|
||||
separator-color = "00000000";
|
||||
inside-color = "00000088";
|
||||
inside-clear-color = "${colors.base0A}88";
|
||||
inside-ver-color = "${colors.base0D}88";
|
||||
inside-wrong-color = "${colors.base08}88";
|
||||
line-color = "00000000";
|
||||
line-clear-color = "00000000";
|
||||
line-ver-color = "00000000";
|
||||
line-wrong-color = "00000000";
|
||||
ring-color = "${colors.base02}";
|
||||
ring-clear-color = "${colors.base0A}";
|
||||
ring-ver-color = "${colors.base0D}";
|
||||
ring-wrong-color = "${colors.base08}";
|
||||
text-color = "${colors.base05}";
|
||||
text-clear-color = "${colors.base00}";
|
||||
text-ver-color = "${colors.base00}";
|
||||
text-wrong-color = "${colors.base00}";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user