switch to alacritty

This commit is contained in:
uku 2024-01-10 18:23:27 +01:00
parent 344eff72a9
commit 61e36587ec
Signed by: uku
GPG key ID: 7D01D7B105E77166
4 changed files with 24 additions and 23 deletions

22
programs/alacritty.nix Normal file
View file

@ -0,0 +1,22 @@
{
lib,
pkgs,
...
}: {
hm.programs.alacritty = let
theme = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/catppuccin/alacritty/ce476fb41f307d90f841c1a4fd7f0727c21248b2/catppuccin-macchiato.toml";
hash = "sha256-m0Y8OBD9Pgjw9ARwjeD8a+JIQRDboVVCywQS8/ZBAcc=";
};
themeAttr = builtins.fromTOML (builtins.readFile theme);
in {
enable = true;
settings = lib.recursiveUpdate themeAttr {
font = {
normal.family = "Iosevka Nerd Font";
size = 12;
};
};
};
}

View file

@ -15,9 +15,6 @@
${lib.getExe nix-your-shell} fish | source ${lib.getExe nix-your-shell} fish | source
''; '';
functions = { functions.fish_greeting = "";
fish_greeting = "";
kssh = "${lib.getExe pkgs.kitty} +kitten ssh $argv";
};
}; };
} }

View file

@ -104,7 +104,7 @@
bind = bind =
[ [
"$mod, Return, exec, ${getExe kitty}" "$mod, Return, exec, ${getExe alacritty}"
"$mod SHIFT, A, killactive," "$mod SHIFT, A, killactive,"
"$mod SHIFT, E, exit," "$mod SHIFT, E, exit,"
"$mod SHIFT, Space, togglefloating," "$mod SHIFT, Space, togglefloating,"

View file

@ -1,18 +0,0 @@
{
hm.programs.kitty = {
enable = true;
font = {
name = "Iosevka Nerd Font";
size = 12;
};
shellIntegration.enableFishIntegration = true;
theme = "Catppuccin-Macchiato";
extraConfig = ''
tab_bar_edge bottom
tab_bar_style powerline
tab_powerline_style slanted
tab_title_template {title}{' :{}:'.format(num_windows) if num_windows > 1 else '\'
'';
};
}