refactor(terminal): overhaul alacritty configuration and theme management
- Import external theme file (`dank-theme.toml`) via Alacritty's general settings. - Switch font family to `FiraCode Nerd Font` at size 11.0 with explicit style variations. - Adjust window opacity to solid (`1.0`) and refine padding dimensions. - Add granular configuration for cursor behavior, mouse interactions, scrolling history, and selection rules. - Introduce explicit keyboard bindings for clipboard actions, font resizing, and window control. Rationale: Centralizes color styling into a modular theme file and aligns terminal ergonomics, typography, and keybindings with the workspace setup.
This commit is contained in:
1 parent
2bd011c54a
commit
cb7ea04d2f
1 file changed
+49
-12
+49
-12
@@ -8,21 +8,58 @@
|
|||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
window = {
|
general = {
|
||||||
padding = { x = 10; y = 10; }; # Padding to avoid text hugging window borders
|
import = [
|
||||||
decorations = "none"; # Frameless windows for clean tiling layouts
|
"~/.config/alacritty/dank-theme.toml"
|
||||||
opacity = 0.95; # Subtle background translucency
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
font = {
|
font = {
|
||||||
# Font settings. (Nerd Font version required for UI icons)
|
normal = { family = "FiraCode Nerd Font"; style = "Regular"; };
|
||||||
normal = { family = "JetBrainsMono Nerd Font"; style = "Regular"; };
|
bold = { family = "FiraCode Nerd Font"; style = "Bold"; };
|
||||||
size = 12.0;
|
italic = { family = "FiraCode Nerd Font"; style = "Italic"; };
|
||||||
|
bold_italic = { family = "FiraCode Nerd Font"; style = "Bold Italic"; };
|
||||||
|
size = 11.0;
|
||||||
};
|
};
|
||||||
colors = {
|
|
||||||
primary = {
|
window = {
|
||||||
background = "#1e1e2e"; # Catppuccin Mocha Base (Dark Theme)
|
decorations = "None";
|
||||||
foreground = "#cdd6f4"; # Catppuccin Mocha Text (Light grey)
|
padding = { x = 12; y = 12; };
|
||||||
};
|
opacity = 1.0;
|
||||||
|
};
|
||||||
|
|
||||||
|
scrolling = {
|
||||||
|
history = 3023;
|
||||||
|
};
|
||||||
|
|
||||||
|
cursor = {
|
||||||
|
style = { shape = "Block"; blinking = "On"; };
|
||||||
|
blink_interval = 500;
|
||||||
|
unfocused_hollow = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
mouse = {
|
||||||
|
hide_when_typing = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
selection = {
|
||||||
|
save_to_clipboard = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
bell = {
|
||||||
|
duration = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
keyboard = {
|
||||||
|
bindings = [
|
||||||
|
{ key = "C"; mods = "Control|Shift"; action = "Copy"; }
|
||||||
|
{ key = "V"; mods = "Control|Shift"; action = "Paste"; }
|
||||||
|
{ key = "N"; mods = "Control|Shift"; action = "SpawnNewInstance"; }
|
||||||
|
{ key = "Equals"; mods = "Control|Shift"; action = "IncreaseFontSize"; }
|
||||||
|
{ key = "Minus"; mods = "Control"; action = "DecreaseFontSize"; }
|
||||||
|
{ key = "Key0"; mods = "Control"; action = "ResetFontSize"; }
|
||||||
|
{ key = "Enter"; mods = "Shift"; chars = "\n"; }
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user