mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 22:30:25 +01:00
72 lines
2.0 KiB
Nix
72 lines
2.0 KiB
Nix
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
###########################################################
|
|
#
|
|
# Alacritty Configuration
|
|
#
|
|
# Useful Hot Keys for macOS:
|
|
# 1. Multi-Window: `command + N`
|
|
# 2. Increase Font Size: `command + =` | `command + +`
|
|
# 3. Decrease Font Size: `command + -` | `command + _`
|
|
# 4. Search Text: `command + F`
|
|
# 5. And Other common shortcuts such as Copy, Paste, Cursor Move, etc.
|
|
#
|
|
# Useful Hot Keys for Linux:
|
|
# 1. Increase Font Size: `ctrl + shift + =` | `ctrl + shift + +`
|
|
# 2. Decrease Font Size: `ctrl + shift + -` | `ctrl + shift + _`
|
|
# 3. Search Text: `ctrl + shift + N`
|
|
# 4. And Other common shortcuts such as Copy, Paste, Cursor Move, etc.
|
|
#
|
|
# Note: Alacritty do not have support for Tabs, and any graphic protocol.
|
|
#
|
|
###########################################################
|
|
{
|
|
programs.alacritty = {
|
|
enable = true;
|
|
# https://alacritty.org/config-alacritty.html
|
|
settings = {
|
|
window = {
|
|
opacity = 0.93;
|
|
startup_mode = "Maximized"; # Maximized window
|
|
dynamic_title = true;
|
|
option_as_alt = "Both"; # Option key acts as Alt on macOS
|
|
decorations = "None"; # Show neither borders nor title bar
|
|
};
|
|
scrolling = {
|
|
history = 10000;
|
|
};
|
|
font = {
|
|
bold = {
|
|
family = "Maple Mono NF CN";
|
|
};
|
|
italic = {
|
|
family = "Maple Mono NF CN";
|
|
};
|
|
normal = {
|
|
family = "Maple Mono NF CN";
|
|
};
|
|
bold_italic = {
|
|
family = "Maple Mono NF CN";
|
|
};
|
|
size = 13;
|
|
};
|
|
terminal = {
|
|
# Spawn a nushell in login mode via `bash`
|
|
shell = {
|
|
program = "${pkgs.bash}/bin/bash";
|
|
args = [
|
|
"--login"
|
|
"-c"
|
|
"nu --login --interactive"
|
|
];
|
|
};
|
|
# Controls the ability to write to the system clipboard with the OSC 52 escape sequence.
|
|
# It's used by zellij to copy text to the system clipboard.
|
|
osc52 = "CopyPaste";
|
|
};
|
|
};
|
|
};
|
|
}
|