Switch from kitty to alacritty

This commit is contained in:
Tim Schubert 2021-03-20 15:28:15 +01:00
parent cd21dba137
commit d2d58a7612
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
5 changed files with 78 additions and 8 deletions

View file

@ -2,12 +2,12 @@
let
this = import ../../.. { inherit pkgs; };
useFeatures = [
"alacritty"
"vim"
"direnv"
"git"
"gpg"
"gtk"
"kitty"
"keyring"
"ssh"
"sway"

View file

@ -12,7 +12,7 @@ in
gpg.enable = true;
gtk.enable = true;
keyring.enable = true;
kitty.enable = true;
alacritty.enable = true;
ssh.enable = true;
tmux.enable = true;
xdg.enable = true;

View file

@ -0,0 +1,69 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.dadada.home.alacritty;
in
{
options.dadada.home.alacritty = {
enable = mkEnableOption "Enable alacritty config";
};
config = mkIf cfg.enable {
programs.alacritty = {
enable = true;
settings = {
scrolling.history = 0;
font.size = 9;
shell.program = "tmux";
window.decorations = "none";
colors = {
# Base16 Spacemacs 256 - alacritty color config
# Nasser Alshammari (https://github.com/nashamri/spacemacs-theme)
# Default colors
primary = {
background = "0x1f2022";
foreground = "0xa3a3a3";
};
# Colors the cursor will use if `custom_cursor_colors` is true
cursor = {
text = "0x1f2022";
cursor = "0xa3a3a3";
};
# Normal colors
normal = {
black = "0x1f2022";
red = "0xf2241f";
green = "0x67b11d";
yellow = "0xb1951d";
blue = "0x4f97d7";
magenta = "0xa31db1";
cyan = "0x2d9574";
white = "0xa3a3a3";
};
# Bright colors
bright = {
black = "0x585858";
red = "0xf2241f";
green = "0x67b11d";
yellow = "0xb1951d";
blue = "0x4f97d7";
magenta = "0xa31db1";
cyan = "0x2d9574";
white = "0xf8f8f8";
};
indexed_colors = [
{ index = 16; color = "0xffa500"; }
{ index = 17; color = "0xb03060"; }
{ index = 18; color = "0x282828"; }
{ index = 19; color = "0x444155"; }
{ index = 20; color = "0xb8b8b8"; }
{ index = 21; color = "0xe8e8e8"; }
];
};
};
};
};
}

View file

@ -1,4 +1,5 @@
{
alacritty = ./alacritty;
colors = ./colors.nix;
direnv = ./direnv.nix;
fish = ./fish.nix;

View file

@ -1,18 +1,18 @@
font_family Source Code Pro
font_size 10
font_family monospace
font_size 9
bold_font auto
italic_font auto
bold_italic_font auto
copy_on_select no
clipboard_control read-clipboard write-clipboard no-append
clipboard_control no-append write-clipboard read-clipboard
allow_hyperlinks yes
detect_urls yes
strip_trailing_spaces never
window_alert_on_bell yes
enable_audio_bell yes
bell_on_tab yes
tab_bar_style hidden
scrollback_lines 0
tab_bar_style hide
scrollback_lines 20000
map ctrl+shift+v no_op
map ctrl+shift+c no_op
@ -59,4 +59,4 @@ color19 #444155
color20 #b8b8b8
color21 #e8e8e8
shell tmux
#shell tmux