mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-23 17:28:33 +02:00
refactor: alacritty's config
This commit is contained in:
77
home/base/desktop/alacritty/default.nix
Normal file
77
home/base/desktop/alacritty/default.nix
Normal file
@@ -0,0 +1,77 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
xdg.configFile."alacritty/alacritty.yml".text = ''
|
||||
import:
|
||||
# all alacritty themes can be found at
|
||||
# https://github.com/alacritty/alacritty-theme
|
||||
- ~/.config/alacritty/theme_catppuccino.yml
|
||||
|
||||
window:
|
||||
# Background opacity
|
||||
#
|
||||
# Window opacity as a floating point number from `0.0` to `1.0`.
|
||||
# The value `0.0` is completely transparent and `1.0` is opaque.
|
||||
opacity: 0.90
|
||||
|
||||
# Startup Mode (changes require restart)
|
||||
#
|
||||
# Values for `startup_mode`:
|
||||
# - Windowed
|
||||
# - Maximized
|
||||
# - Fullscreen
|
||||
#
|
||||
# Values for `startup_mode` (macOS only):
|
||||
# - SimpleFullscreen
|
||||
startup_mode: Windowed
|
||||
|
||||
# Allow terminal applications to change Alacritty's window title.
|
||||
dynamic_title: true
|
||||
|
||||
# Make `Option` key behave as `Alt` (macOS only):
|
||||
# - OnlyLeft
|
||||
# - OnlyRight
|
||||
# - Both
|
||||
# - None (default)
|
||||
option_as_alt: Both
|
||||
|
||||
scrolling:
|
||||
# Maximum number of lines in the scrollback buffer.
|
||||
# Specifying '0' will disable scrolling.
|
||||
history: 10000
|
||||
|
||||
# Scrolling distance multiplier.
|
||||
#multiplier: 3
|
||||
|
||||
# Font configuration
|
||||
font:
|
||||
# Normal (roman) font face
|
||||
bold:
|
||||
family: JetBrainsMono Nerd Font
|
||||
italic:
|
||||
family: JetBrainsMono Nerd Font
|
||||
normal:
|
||||
family: JetBrainsMono Nerd Font
|
||||
bold_italic:
|
||||
# Font family
|
||||
#
|
||||
# If the bold italic family is not specified, it will fall back to the
|
||||
# value specified for the normal font.
|
||||
family: JetBrainsMono Nerd Font
|
||||
'' + (if pkgs.stdenv.isDarwin then ''
|
||||
# Point size
|
||||
size: 14
|
||||
shell: # force nushell as default shell on macOS
|
||||
program: /run/current-system/sw/bin/nu
|
||||
'' else ''
|
||||
# Point size
|
||||
size: 13
|
||||
'');
|
||||
|
||||
|
||||
xdg.configFile."alacritty/theme_catppuccino.yml".source = ./theme_catppuccino.yml;
|
||||
}
|
||||
40
home/base/desktop/alacritty/theme_catppuccino.yml
Normal file
40
home/base/desktop/alacritty/theme_catppuccino.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
# Catppuccino theme scheme for Alacritty
|
||||
|
||||
colors:
|
||||
primary:
|
||||
background: '#1E1E2E'
|
||||
foreground: '0xd6d6d6'
|
||||
|
||||
cursor:
|
||||
text: '#CDD6F4'
|
||||
cursor: '#D9D9D9'
|
||||
|
||||
normal:
|
||||
black: '#181A1F'
|
||||
red: '#E86671'
|
||||
green: '#98C379'
|
||||
yellow: '#E5C07B'
|
||||
blue: '#61AFEF'
|
||||
magenta: '#C678DD'
|
||||
cyan: '#54AFBC'
|
||||
white: '#ABB2BF'
|
||||
|
||||
bright:
|
||||
black: '#5C6370'
|
||||
red: '#E86671'
|
||||
green: '#98C379'
|
||||
yellow: '#E5C07B'
|
||||
blue: '#61AFEF'
|
||||
magenta: '#C678DD'
|
||||
cyan: '#54AFBC'
|
||||
white: '0xf7f7f7'
|
||||
|
||||
dim:
|
||||
black: '#5C6370'
|
||||
red: '0x74423f'
|
||||
green: '#98C379'
|
||||
yellow: '#E5C07B'
|
||||
blue: '#61AFEF'
|
||||
magenta: '0x6e4962'
|
||||
cyan: '0x5c8482'
|
||||
white: '0x828282'
|
||||
@@ -1,6 +1,7 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./alacritty
|
||||
../server
|
||||
./neovim
|
||||
|
||||
|
||||
@@ -92,14 +92,6 @@ return {
|
||||
{"nvim-treesitter/nvim-treesitter"}
|
||||
}
|
||||
},
|
||||
{
|
||||
'edluffy/hologram.nvim',
|
||||
config = function()
|
||||
require('hologram').setup({
|
||||
auto_display = true -- WIP automatic markdown image display, may be prone to breaking
|
||||
})
|
||||
end,
|
||||
},
|
||||
-- Language Parser for syntax highlighting / indentation / folding / Incremental selection
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
|
||||
Reference in New Issue
Block a user