103 lines
2.5 KiB
YAML
103 lines
2.5 KiB
YAML
# Configuration for Alacritty, the GPU enhanced terminal emulator
|
|
|
|
# Set environment variables
|
|
env:
|
|
# don't do DPI scaling, it sucks
|
|
WINIT_HIDPI_FACTOR: '1.0'
|
|
|
|
# Live config reload (changes require restart)
|
|
live_config_reload: true
|
|
|
|
window:
|
|
padding:
|
|
x: 2
|
|
y: 2
|
|
|
|
background_opacity: 1.0
|
|
dynamic_title: true
|
|
|
|
# disable visual bell
|
|
visual_bell:
|
|
duration: 0
|
|
|
|
scrolling:
|
|
# How many lines of scrollback to keep, '0' will disable scrolling.
|
|
history: 10000
|
|
|
|
# Number of lines the viewport will move for every line scrolled
|
|
multiplier: 3
|
|
|
|
# The `faux_multiplier` setting controls the number
|
|
# of lines the terminal should scroll when the alternate
|
|
# screen buffer is active. This is used to allow mouse
|
|
# scrolling for applications like `man`.
|
|
faux_multiplier: 3
|
|
|
|
# Automatically scroll to the bottom when new text is written
|
|
# to the terminal.
|
|
auto_scroll: false
|
|
|
|
font:
|
|
normal: { family: Hack }
|
|
size: 11.0
|
|
|
|
# Display tabs using this many cells (changes require restart)
|
|
tabspaces: 8
|
|
|
|
selection:
|
|
semantic_escape_chars: ",│`|:\"' ()[]{}<>"
|
|
|
|
cursor:
|
|
# Whether the cursor should be a hollow block on window focus loss
|
|
unfocused_hollow: true
|
|
style: Block
|
|
|
|
# Draw bold text using the bright variant of colors
|
|
draw_bold_text_with_bright_colors: true
|
|
|
|
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"]}
|
|
|