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%-";