summaryrefslogtreecommitdiff
path: root/home/xyz/.config/alacritty
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-12-28 05:11:39 -0800
committerXiao Pan <gky44px1999@gmail.com>2023-12-28 05:11:39 -0800
commit690faf494bb74cc9869a99bfc8b5433f47ef762d (patch)
tree1d3d6d692f82bc30aaef37e3ea409acdce8b650b /home/xyz/.config/alacritty
parent22cdf8bb9c442a8e4f9195cd30896f2e93df3bdc (diff)
fix: alacritty config migrate to .toml
Diffstat (limited to 'home/xyz/.config/alacritty')
-rw-r--r--home/xyz/.config/alacritty/alacritty.toml24
-rw-r--r--home/xyz/.config/alacritty/alacritty.yml16
2 files changed, 24 insertions, 16 deletions
diff --git a/home/xyz/.config/alacritty/alacritty.toml b/home/xyz/.config/alacritty/alacritty.toml
new file mode 100644
index 00000000..42945ad0
--- /dev/null
+++ b/home/xyz/.config/alacritty/alacritty.toml
@@ -0,0 +1,24 @@
+[cursor]
+vi_mode_style = "Block"
+
+# 1. when set TERM use alacritty on windows, syntax is very bad
+# 2. need to set xterm-256color if want ls show color when use ssh
+[env]
+TERM = "xterm-256color"
+
+[font]
+size = 8.0
+
+# for cataclysm dda game, use this font, kinda square font, recommended from web
+# for .toml, all following three configs seem work
+# https://toml.io/en/v1.0.0#inline-table
+
+#normal.family = "White Rabbit"
+
+#normal = { family = "White Rabbit" }
+
+#[font.normal]
+#family = "White Rabbit"
+
+[window]
+dynamic_padding = true
diff --git a/home/xyz/.config/alacritty/alacritty.yml b/home/xyz/.config/alacritty/alacritty.yml
deleted file mode 100644
index 083ad876..00000000
--- a/home/xyz/.config/alacritty/alacritty.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-cursor:
- vi_mode_style: Block
-
-# 1. when set TERM use alacritty on windows, syntax is very bad
-# 2. need to set xterm-256color if want ls show color when use ssh
-env:
- TERM: xterm-256color
-
-font:
-# for cataclysm dda game, use this font, kinda square font, recommended from web
-# normal:
-# family: White Rabbit
- size: 8.0
-
-window:
- dynamic_padding: true