add kitty stuff
This commit is contained in:
parent
239d8a43fc
commit
f9412bdecf
4 changed files with 35 additions and 37 deletions
|
@ -15,6 +15,11 @@ desktop: { pkgs, ... }: {
|
|||
initExtraBeforeCompInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||
initExtra = ''
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
test -n "$KITTY_INSTALLATION_DIR" || export KITTY_INSTALLATION_DIR=${pkgs.kitty}/lib/kitty
|
||||
export KITTY_SHELL_INTEGRATION=enabled
|
||||
autoload -Uz -- "$KITTY_INSTALLATION_DIR"/shell-integration/zsh/kitty-integration
|
||||
kitty-integration
|
||||
unfunction kitty-integration
|
||||
'';
|
||||
sessionVariables = {
|
||||
GTK_IM_MODULE = "ibus";
|
||||
|
|
|
@ -23,5 +23,6 @@
|
|||
../programs/vscode
|
||||
../programs/misc.nix
|
||||
../programs/mail.nix
|
||||
../programs/kitty.nix
|
||||
] else [ ]);
|
||||
}
|
||||
|
|
8
config/programs/kitty.nix
Normal file
8
config/programs/kitty.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }: {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
font.name = "FiraCode Nerd Font Mono";
|
||||
disable_ligatures = "cursor";
|
||||
shell_integration = "disabled";
|
||||
};
|
||||
}
|
|
@ -26,43 +26,27 @@ let theme = import ../../extra/theme.nix; in
|
|||
qt.style.package = pkgs.libsForQt5.breeze-qt5;
|
||||
qt.style.name = "BreezeDark";
|
||||
|
||||
# Paraiso (dark) by Chris Kempson
|
||||
# Alacritty colors
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
colors = with theme; {
|
||||
# Default Colors
|
||||
primary = {
|
||||
background = alacrittyColor bg;
|
||||
foreground = alacrittyColor fg;
|
||||
};
|
||||
|
||||
# Normal Colors
|
||||
normal = {
|
||||
black = alacrittyColor black;
|
||||
red = alacrittyColor dark-red;
|
||||
green = alacrittyColor dark-green;
|
||||
yellow = alacrittyColor dark-yellow;
|
||||
blue = alacrittyColor dark-blue;
|
||||
magenta = alacrittyColor dark-magenta;
|
||||
cyan = alacrittyColor dark-cyan;
|
||||
white = alacrittyColor light-grey;
|
||||
};
|
||||
|
||||
# Bright Colors
|
||||
bright = {
|
||||
black = alacrittyColor dark-grey;
|
||||
red = alacrittyColor red;
|
||||
green = alacrittyColor green;
|
||||
yellow = alacrittyColor yellow;
|
||||
blue = alacrittyColor blue;
|
||||
magenta = alacrittyColor magenta;
|
||||
cyan = alacrittyColor cyan;
|
||||
white = alacrittyColor white;
|
||||
};
|
||||
};
|
||||
};
|
||||
programs.kitty.settings = {
|
||||
background = cssColor bg;
|
||||
foreground = cssColor fg;
|
||||
cursor = cssColor fg;
|
||||
selection_background = "#4f414c";
|
||||
color0 = cssColor black;
|
||||
color1 = cssColor dark-red;
|
||||
color2 = cssColor dark-green;
|
||||
color3 = cssColor dark-yellow;
|
||||
color4 = cssColor dark-blue;
|
||||
color5 = cssColor dark-magenta;
|
||||
color6 = cssColor dark-cyan;
|
||||
color7 = cssColor light-grey;
|
||||
color8 = cssColor dark-grey;
|
||||
color9 = cssColor red;
|
||||
color10 = cssColor green;
|
||||
color11 = cssColor yellow;
|
||||
color12 = cssColor blue;
|
||||
color13 = cssColor magenta;
|
||||
color14 = cssColor cyan;
|
||||
color15 = cssColor white;
|
||||
};
|
||||
|
||||
programs.waybar.style = with theme; ''
|
||||
|
|
Loading…
Reference in a new issue