i3/.config/alacritty/alacritty.yml

60 lines
1.5 KiB
YAML

# Configuration for Alacritty, the GPU enhanced terminal emulator
# Set environment variables
env:
# don't do DPI scaling, it sucks
WINIT_X11_SCALE_FACTOR: '1.0'
window:
padding: {x: 2, y: 2}
font:
normal: { family: Hack }
size: 11.0
colors:
primary:
background: '0x111111'
foreground: '0xb98000'
normal:
black: '0x2e3436'
red: '0xcc0000'
green: '0x4e9a06'
yellow: '0xc4a000'
blue: '0x3465a4'
magenta: '0x75507b'
cyan: '0x06989a'
white: '0xd3d7cf'
bright:
black: '0x555753'
red: '0xef2929'
green: '0x8ae234'
yellow: '0xfce94f'
blue: '0x739fcf'
magenta: '0xad7fa8'
cyan: '0x34e2e2'
white: '0xeeeeec'
mouse:
hide_when_typing: true
url: { modifiers: Control|Shift }
key_bindings:
# Copy/Paste
- { key: V, mods: Control|Shift, action: Paste }
- { key: C, mods: Control|Shift, action: Copy }
# font sizing
- { key: Key0, mods: Control, action: ResetFontSize }
- { key: Equals, mods: Control, action: IncreaseFontSize }
- { key: Subtract, mods: Control, action: DecreaseFontSize }
# new instance in cwd
- { key: Return, mods: Super, action: SpawnNewInstance }
# toggle font colors
- key: Backslash
mods: Super
command: {program: "sh", args: ["-c", "~/.config/alacritty/swapColors.sh"]}