From 6fb0387f7d0a69c4e26abe5facd2dc5d59bc956b Mon Sep 17 00:00:00 2001 From: buffet Date: Sat, 5 Nov 2022 18:48:20 +0000 Subject: [PATCH] feat(sway): use kanagawa for lockscreen --- programs/sway.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/programs/sway.nix b/programs/sway.nix index 11a9f1b..4e7c8fa 100644 --- a/programs/sway.nix +++ b/programs/sway.nix @@ -88,6 +88,26 @@ }; keybindings = + let + swaylockConf = pkgs.writeText "swaylock.conf" '' + ignore-empty-password + color=${theme.primary.background} + bs-hl-color=${theme.normal.red} + caps-lock-bs-hl-color=${theme.normal.red} + caps-lock-key-hl-color=${theme.bright.green} + inside-color=${theme.primary.background} + inside-clear-color=${theme.normal.yellow} + inside-caps-lock-color=${theme.primary.background} + inside-ver-color=${theme.normal.blue} + inside-wrong-color=${theme.normal.red} + key-hl-color=${theme.bright.green} + ring-color=${theme.normal.green} + ring-clear-color=${theme.normal.yellow} + ring-caps-lock-color=${theme.bright.yellow} + ring-ver-color=${theme.bright.blue} + ring-wrong-color=${theme.bright.red} + ''; + in { "${mod}+Shift+c" = "kill"; "${mod}+Control+r" = "reload"; @@ -95,7 +115,7 @@ "${mod}+Shift+Return" = "exec ${terminal}"; "${mod}+i" = "exec ${browser}"; - "${mod}+Shift+y" = "exec ${pkgs.swaylock}/bin/swaylock -ec '${theme.primary.background}'"; + "${mod}+Shift+y" = "exec ${pkgs.swaylock}/bin/swaylock -C '${swaylockConf}'"; "${mod}+z" = "exec ${pkgs.brightnessctl}/bin/brightnessctl s 1%-"; "${mod}+x" = "exec ${pkgs.brightnessctl}/bin/brightnessctl s 1%+"; "${mod}+Shift+z" = "exec ${pkgs.brightnessctl}/bin/brightnessctl s 5%-";