Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Alacritty config from TOML to YAML format #66

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions config/alacritty/alacritty.toml

This file was deleted.

45 changes: 45 additions & 0 deletions config/alacritty/alacritty.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
live_config_reload: true
working_directory: None

# Themes --
import:
- "~/.config/alacritty/nordic.yml"
- "~/.config/alacritty/keybinds.yml"

window:
title: "Alacritty"
decorations: "none"
blur: true
opacity: 0.9
padding:
x: 10
y: 10

dimensions:
columns: 160
lines: 80

cursor:
style:
shape: "Beam"
blinking: "Never"

env:
TERM: "xterm-256color"

font:
# glyph_offset:
# x: 1
# y: 0
normal:
family: "MesloLGS Nerd Font Mono"
style: "Regular"
size: 16.0

bold:
family: "MesloLGS Nerd Font Mono"
style: "Bold"

italic:
family: "MesloLGS Nerd Font Mono"
style: "Italic"
56 changes: 0 additions & 56 deletions config/alacritty/keybinds.toml

This file was deleted.

143 changes: 143 additions & 0 deletions config/alacritty/keybinds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
keyboard:
bindings:
# Clipboard
- key: "V"
mods: "Super"
action: "Paste"
- key: "S"
mods: "Control|Shift"
action: "Paste"
- key: "C"
mods: "Super"
action: "Copy"
- key: "Insert"
mods: "Shift"
action: "PasteSelection"
# - key: "C" # commented out
# mods: "Control"
# action: "Copy"
- key: "V"
mods: "Control"
action: "Paste"
- key: "Insert"
mods: "Shift"
action: "Paste"

# Scrolling
- key: "Up"
mods: "Control|Shift"
action: "ScrollLineUp"
- key: "Down"
mods: "Control|Shift"
action: "ScrollLineDown"
- key: "K"
mods: "Control|Shift"
action: "ScrollLineUp"
- key: "J"
mods: "Control|Shift"
action: "ScrollLineDown"
- key: "PageUp"
mods: "Control|Shift"
action: "ScrollPageUp"
- key: "PageDown"
mods: "Control|Shift"
action: "ScrollPageDown"
- key: "Home"
mods: "Control|Shift"
action: "ScrollToTop"
- key: "End"
mods: "Control|Shift"
action: "ScrollToBottom"
# - key: "H" # commented out
# mods: "Control|Shift"
# action: "ShowScrollback"

# Window management (commented out)
# - key: "N"
# mods: "Super"
# action: "SpawnNewInstance"
# - key: "W"
# mods: "Super"
# action: "Close"
# - key: "Enter"
# mods: "Control|Shift"
# action: "SpawnNewInstance"
# - key: "RightBracket"
# mods: "Control|Shift"
# action: "NextWindow"
# - key: "LeftBracket"
# mods: "Control|Shift"
# action: "PreviousWindow"
# - key: "F"
# mods: "Control|Shift"
# action: "MoveForward"
# - key: "B"
# mods: "Control|Shift"
# action: "MoveBackward"
# - key: "Grave"
# mods: "Control|Shift"
# action: "MoveToTop"
# - key: "Key1"
# mods: "Control|Shift"
# action: "MoveToFirst"
# - key: "Key2"
# mods: "Control|Shift"
# action: "MoveToSecond"
# - key: "Key3"
# mods: "Control|Shift"
# action: "MoveToThird"
# - key: "Key4"
# mods: "Control|Shift"
# action: "MoveToFourth"
# - key: "Key5"
# mods: "Control|Shift"
# action: "MoveToFifth"
# - key: "Key6"
# mods: "Control|Shift"
# action: "MoveToSixth"
# - key: "Key7"
# mods: "Control|Shift"
# action: "MoveToSeventh"
# - key: "Key8"
# mods: "Control|Shift"
# action: "MoveToEighth"
# - key: "Key9"
# mods: "Control|Shift"
# action: "MoveToNinth"
# - key: "Key0"
# mods: "Control|Shift"
# action: "MoveToTenth"

# Tab management (commented out)
# - key: "Right"
# mods: "Control|Shift"
# action: "NextTab"
# - key: "Left"
# mods: "Control|Shift"
# action: "PreviousTab"
# - key: "T"
# mods: "Control|Shift"
# action: "SpawnNewTab"
# - key: "Q"
# mods: "Control|Shift"
# action: "CloseTab"
# - key: "L"
# mods: "Control|Shift"
# action: "NextLayout"
# - key: "Period"
# mods: "Control|Shift"
# action: "MoveTabForward"
# - key: "Comma"
# mods: "Control|Shift"
# action: "MoveTabBackward"

# Miscellaneous
- key: "Up"
mods: "Control|Shift"
action: "IncreaseFontSize"
- key: "Down"
mods: "Control|Shift"
action: "DecreaseFontSize"
- key: "Backspace"
mods: "Control|Shift"
action: "ResetFontSize"
29 changes: 0 additions & 29 deletions config/alacritty/nordic.toml

This file was deleted.

30 changes: 30 additions & 0 deletions config/alacritty/nordic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
colors:
# transparent_background_colors: true
draw_bold_text_with_bright_colors: true
primary:
background: '#2E3440'
foreground: '#D8DEE9'

normal:
black: '#191C1D'
red: '#BD6062'
green: '#A3D6A9'
yellow: '#F0DFAF'
blue: '#8FB4D8'
magenta: '#C7A9D9'
cyan: '#B6D7A8'
white: '#BDC5BD'

bright:
black: '#727C7C'
red: '#D18FAF'
green: '#B7CEB0'
yellow: '#BCBCBC'
blue: '#E0CF9F'
magenta: '#C7A9D9'
cyan: '#BBDA97'
white: '#BDC5BD'

selection:
text: '#000000'
background: '#F0DFAF'