nixos-config/modules/home/swaylock/default.nix

84 lines
2.2 KiB
Nix
Raw Normal View History

2023-11-05 17:56:55 +01:00
{ pkgs, lib, config, inputs, ... }:
2023-11-05 11:40:44 +01:00
{
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
settings = {
clock = true;
2023-11-11 23:31:44 +01:00
datestr = "";
2023-11-05 11:40:44 +01:00
screenshots = true;
2023-11-11 23:31:44 +01:00
2023-11-05 11:40:44 +01:00
indicator = true;
indicator-radius = 100;
indicator-thickness = 7;
2023-11-11 23:31:44 +01:00
2023-11-05 11:40:44 +01:00
effect-blur = "7x5";
effect-vignette = "0.5:0.5";
2023-11-11 23:31:44 +01:00
2023-11-11 23:28:27 +01:00
color="1e1e2e";
bs-hl-color="f5e0dc";
caps-lock-bs-hl-color="f5e0dc";
caps-lock-key-hl-color="a6e3a1";
2023-11-11 23:31:44 +01:00
ring-color="b4befe";
ring-clear-color="f5e0dc";
ring-caps-lock-color="fab387";
ring-ver-color="89b4fa";
ring-wrong-color="eba0ac";
text-color="cdd6f4";
text-clear-color="f5e0dc";
text-caps-lock-color="fab387";
text-ver-color="89b4fa";
text-wrong-color="eba0ac";
2023-11-11 23:28:27 +01:00
inside-color="00000000";
inside-clear-color="00000000";
inside-caps-lock-color="00000000";
inside-ver-color="00000000";
inside-wrong-color="00000000";
key-hl-color="a6e3a1";
layout-bg-color="00000000";
layout-border-color="00000000";
layout-text-color="cdd6f4";
line-color="00000000";
line-clear-color="00000000";
line-caps-lock-color="00000000";
line-ver-color="00000000";
line-wrong-color="00000000";
separator-color="00000000";
2023-11-05 11:40:44 +01:00
};
};
2023-12-14 16:02:50 +01:00
# services.swayidle = {
# enable = true;
# events = [
# {
# event = "before-sleep";
# command = "${pkgs.swaylock-effects}/bin/swaylock -fF";
# }
# {
# event = "lock";
# command = "${pkgs.swaylock-effects}/bin/swaylock -fF";
# }
# ];
# timeouts = [
# {
# timeout = 90;
# command = "swaylock";
# }
# {
# timeout = 300;
# command = "systemctl suspend";
# }
# {
# timeout = 180;
# command = "systemctl suspend";
# # command = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms off";
# # resumeCommand = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms on";
# }
# ];
# };
2023-11-05 11:40:44 +01:00
2023-12-14 16:02:50 +01:00
# systemd.user.services.swayidle.Install.WantedBy = lib.mkForce ["hyprland-session.target"];
2023-11-05 11:40:44 +01:00
}