Add alacritty configuration

This commit is contained in:
Sonny Bakker 2024-05-31 08:10:55 +02:00
parent 60308c5533
commit 850b6a38e0
2 changed files with 68 additions and 0 deletions

58
files/alacritty.toml Normal file
View file

@ -0,0 +1,58 @@
[font]
normal = { family = "monospace", style = "Regular" }
[colors]
[colors.primary]
# Terminal stying
# Defaults
# foreground = "#d8d8d8"
# background = "#181818"
foreground = "#000000"
background = "#ffffff"
[colors.normal]
# Defaults
# black = "#181818"
# red = "#ac4242"
# green = "#90a959"
# yellow = "#f4bf75"
# blue = "#6a9fb5"
# magenta = "#aa759f"
# cyan = "#75b5aa"
# white = "#d8d8d8"
black = "#353535"
red = "#e84f4f"
green = "#77d62f"
yellow = "#e1aa5d"
blue = "#7dc1cf"
magenta = "#9b64fb"
cyan = "#6d878d"
white = "#dddddd"
[colors.dim]
# Defaults
# black = "#0f0f0f"
# red = "#712b2b"
# green = "#5f6f3a"
# yellow = "#a17e4d"
# blue = "#456877"
# magenta = "#704d68"
# cyan = "#4d7770"
# white = "#8e8e8e"
black = "#0f0f0f"
red = "#712b2b"
green = "#5f6f3a"
yellow = "#a17e4d"
blue = "#456877"
magenta = "#704d68"
cyan = "#4d7770"
white = "#8e8e8e"
[selection]
save_to_clipboard = true
[keyboard]
bindings = [{ key = "N", mods = "Control | Shift", action = "SpawnNewInstance" },]

View file

@ -44,6 +44,16 @@
notify: restart powertop
when: platform == "laptop"
- name: create alacritty configuration dir
file:
path: '{{ xdg_config_dir }}/alacritty'
state: directory
- name: copy alacritty configuration
copy:
dest: '{{ xdg_config_dir }}/alacritty/alacritty.toml'
src: 'files/alacritty.toml'
- name: enable fstrim timer
become: true
systemd: