From 372180bf08ea89b15e51efd471f818c3e2e007fb Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Mon, 27 Nov 2023 23:11:46 +0530 Subject: [PATCH] setup swaylock --- home/wm/addon/default.nix | 1 + home/wm/addon/swaylock.nix | 36 ++++++++++++++++++++++++++++++++++++ home/wm/hyprland/default.nix | 2 +- 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 home/wm/addon/swaylock.nix diff --git a/home/wm/addon/default.nix b/home/wm/addon/default.nix index 6d53568..7d29324 100644 --- a/home/wm/addon/default.nix +++ b/home/wm/addon/default.nix @@ -5,5 +5,6 @@ ./dunst.nix ./kanshi.nix ./swayidle.nix + ./swaylock.nix ]; } diff --git a/home/wm/addon/swaylock.nix b/home/wm/addon/swaylock.nix new file mode 100644 index 0000000..22b4fba --- /dev/null +++ b/home/wm/addon/swaylock.nix @@ -0,0 +1,36 @@ +_: { + programs.swaylock = { + enable = true; + settings = { + color = "282a36"; + inside-color = "1F202A"; + line-color = "1F202A"; + ring-color = "bd93f9"; + text-color = "f8f8f2"; + + layout-bg-color = "1F202A"; + layout-text-color = "f8f8f2"; + + inside-clear-color = "6272a4"; + line-clear-color = "1F202A"; + ring-clear-color = "6272a4"; + text-clear-color = "1F202A"; + + + inside-ver-color = "bd93f9"; + line-ver-color = "1F202A"; + ring-ver-color = "bd93f9"; + text-ver-color = "1F202A"; + + inside-wrong-color = "ff5555"; + line-wrong-color = "1F202A"; + ring-wrong-color = "ff5555"; + text-wrong-color = "1F202A"; + + bs-hl-color = "ff5555"; + key-hl-color = "50fa7b"; + + text-caps-lock-color = "f8f8f2"; + }; + }; +} diff --git a/home/wm/hyprland/default.nix b/home/wm/hyprland/default.nix index 7bd5c19..8bcc031 100644 --- a/home/wm/hyprland/default.nix +++ b/home/wm/hyprland/default.nix @@ -10,7 +10,7 @@ let kitty = "${config.programs.kitty.package}/bin/kitty"; playerctl = "${pkgs.playerctl}/bin/playerctl"; rofi = "${config.programs.rofi.package}/bin/rofi"; - swaylock = "${pkgs.swaylock}/bin/swaylock"; + swaylock = "${config.programs.swaylock.package}/bin/swaylock"; tmux = "${config.programs.tmux.package}/bin/tmux"; wpctl = "${pkgs.wireplumber}/bin/wpctl";