Skip to content

Commit

Permalink
feat(alacritty): make use of alacritty config imports
Browse files Browse the repository at this point in the history
This allows me to keep platform specific config files, linked to
alacritty.local.yml during provisioning. Alas, it currently requires an
absolute path. Will have to follow up with an update when alacritty
version 0.7.0 is released.

references: alacritty/alacritty@07cfe8bbba

closes: #38
  • Loading branch information
eliasnorrby committed Nov 28, 2020
1 parent c0ade4a commit 6e1dc93
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
3 changes: 3 additions & 0 deletions shell/alacritty/alacritty.arch.yml
@@ -0,0 +1,3 @@
# arch
window:
decorations: none
12 changes: 12 additions & 0 deletions shell/alacritty/alacritty.macos.yml
@@ -0,0 +1,12 @@
# macos
window:
padding:
x: 3
y: 1
# full | none | transparent | buttonless
#
# none gets rid of the rounded corners, but at buttonless allows for
# maximization with APP+CR
decorations: buttonless

background_opacity: 0.92
15 changes: 4 additions & 11 deletions shell/alacritty/alacritty.yml
@@ -1,15 +1,10 @@
# TODO: update this line to use ~ when alacritty 0.7.0 is released
import:
- /home/elias/.config/alacritty/alacritty.local.yml

window:
padding:
x: 3
y: 1
dynamic_padding: true

# full | none | transparent | buttonless
#
# none gets rid of the rounded corners, but at buttonless allows for
# maximization with APP+CR
decorations: buttonless

fonts:
dankmono: &dankmono
family: Dank Mono
Expand Down Expand Up @@ -112,8 +107,6 @@ schemes:

colors: *palenight

background_opacity: 0.92

mouse:
hide_when_typing: true

Expand Down
6 changes: 6 additions & 0 deletions shell/alacritty/topic.config.yml
Expand Up @@ -3,6 +3,12 @@ alacritty_config:
path: shell/alacritty
links:
- alacritty.yml
- src: alacritty.arch.yml
rename: alacritty.local.yml
condition: "{{ is_arch }}"
- src: alacritty.macos.yml
rename: alacritty.local.yml
condition: "{{ is_macos }}"
- src: tmux_alacritty.sh
dest: "{{ xdg_bin_home }}/"
rename: tmux_alacritty
Expand Down

0 comments on commit 6e1dc93

Please sign in to comment.