In Windows, I use wsl (windows subsystem for linux) inside alacritty. I set space key as leader key in some programs (ex. neovim, tmux). but for some reasons alacritty didn't sending space key as input when using as a leader key (ex. space + ps, space + ff). Here a fix i find for windows. put this code into your config file.
[keyboard]
bindings = [{ key = "Space", mods = "Control", chars = "\u0000"}]
Alacritty doesn't create the config file for you, but it looks for one in the following locations:
On Windows, the config file will be looked for in:
[shell]
program = "wsl"
[window]
dimensions = { columns = 120, lines = 30 }
decorations = "None"
padding = { x = 5, y = 5 }
position = { x = 50, y = 5 }
[font]
size = 16.00
normal = { family = "JetBrainsMono Nerd Font Mono", style = "Regular" }
bold = { family = "JetBrainsMono Nerd Font Mono", style = "Bold"}
italic = { family = "JetBrainsMono Nerd Font Mono", style = "Italic"}
bold_italic = { family = "JetBrainsMono Nerd Font Mono", style = "Bold Italic"}
[cursor]
style = { shape = "Block", blinking = "Never" }
#Windows Fix
[keyboard]
bindings = [{ key = "Space", mods = "Control", chars = "\u0000"}]
# Default colors
[colors.primary]
background = '#1a1b26'
foreground = '#a9b1d6'
# Normal colors
[colors.normal]
black = '#32344a'
red = '#f7768e'
green = '#9ece6a'
yellow = '#e0af68'
blue = '#7aa2f7'
magenta = '#ad8ee6'
cyan = '#449dab'
white = '#787c99'
# Bright colors
[colors.bright]
black = '#444b6a'
red = '#ff7a93'
green = '#b9f27c'
yellow = '#ff9e64'
blue = '#7da6ff'
magenta = '#bb9af7'
cyan = '#0db9d7'
white = '#acb0d0'