i3/.config/alacritty/alacritty.yml

73 lines
1.8 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
hints:
enabled:
- regex: "(magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
[^\x00-\x1F\x7F-\x9F<>\"\\s{-}\\^⟨⟩`]+"
hyperlinks: true
command: xdg-open
post_processing: true
mouse:
enabled: true
mods: Control|Shift
binding:
key: U
mods: 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|Shift, action: ResetFontSize }
- { key: Equals, mods: Control|Shift, action: IncreaseFontSize }
- { key: Minus, mods: Control|Shift, 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"]}