Move kitty config into Nix
This commit is contained in:
1
TODO.org
1
TODO.org
@@ -14,7 +14,6 @@ https://karthinks.com/software/fifteen-ways-to-use-embark/
|
|||||||
figure out interactions with Doom
|
figure out interactions with Doom
|
||||||
** configure evil-surround to not put spaces in
|
** configure evil-surround to not put spaces in
|
||||||
* Kitty
|
* Kitty
|
||||||
** Migrate kitty config to Nix
|
|
||||||
** Toggle zoom pane
|
** Toggle zoom pane
|
||||||
C-s>z
|
C-s>z
|
||||||
** Layout shortcuts
|
** Layout shortcuts
|
||||||
|
|||||||
@@ -24,12 +24,12 @@
|
|||||||
ncdu
|
ncdu
|
||||||
ripgrep
|
ripgrep
|
||||||
tmux
|
tmux
|
||||||
kitty
|
|
||||||
fira-code
|
fira-code
|
||||||
];
|
];
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./modules/fish
|
./modules/fish
|
||||||
|
./modules/kitty
|
||||||
./modules/git.nix
|
./modules/git.nix
|
||||||
./modules/direnv.nix
|
./modules/direnv.nix
|
||||||
./modules/emacs.nix
|
./modules/emacs.nix
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ in
|
|||||||
"tmux/tmux.conf".source = ../../tmux.conf;
|
"tmux/tmux.conf".source = ../../tmux.conf;
|
||||||
"vim/vimrc".source = ../../vimrc;
|
"vim/vimrc".source = ../../vimrc;
|
||||||
"ideavim/ideavimrc".source = ../../ideavimrc;
|
"ideavim/ideavimrc".source = ../../ideavimrc;
|
||||||
"kitty".source = mkOutOfStoreSymlink "${dotdir}/kitty";
|
|
||||||
"doom".source = mkOutOfStoreSymlink "${dotdir}/doom";
|
"doom".source = mkOutOfStoreSymlink "${dotdir}/doom";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
59
nix/modules/kitty/current-theme.conf
Normal file
59
nix/modules/kitty/current-theme.conf
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
# vim:ft=kitty
|
||||||
|
|
||||||
|
## name: Doom Vibrant
|
||||||
|
## author: Henrik Lissner <https://github.com/hlissner>
|
||||||
|
## license: MIT
|
||||||
|
## blurb: A version of Doom One Emacs theme that uses more vibrant colors.
|
||||||
|
|
||||||
|
# The basic colors
|
||||||
|
foreground #bbc2cf
|
||||||
|
background #242730
|
||||||
|
selection_foreground #bbc2cf
|
||||||
|
selection_background #6A8FBF
|
||||||
|
|
||||||
|
# Cursor colors
|
||||||
|
cursor #bbc2cf
|
||||||
|
cursor_text_color #242730
|
||||||
|
|
||||||
|
# kitty window border colors
|
||||||
|
active_border_color #46D9FF
|
||||||
|
inactive_border_color #484854
|
||||||
|
|
||||||
|
# Tab bar colors
|
||||||
|
active_tab_foreground #242730
|
||||||
|
active_tab_background #DFDFDF
|
||||||
|
inactive_tab_foreground #484854
|
||||||
|
inactive_tab_background #5D656B
|
||||||
|
|
||||||
|
# The basic 16 colors
|
||||||
|
# black
|
||||||
|
color0 #2a2e38
|
||||||
|
color8 #484854
|
||||||
|
|
||||||
|
# red
|
||||||
|
color1 #ff665c
|
||||||
|
color9 #ff665c
|
||||||
|
|
||||||
|
# green
|
||||||
|
color2 #7bc275
|
||||||
|
color10 #99bb66
|
||||||
|
|
||||||
|
# yellow
|
||||||
|
color3 #fcce7b
|
||||||
|
color11 #ecbe7b
|
||||||
|
|
||||||
|
# blue
|
||||||
|
color4 #51afef
|
||||||
|
color12 #51afef
|
||||||
|
|
||||||
|
# magenta
|
||||||
|
color5 #C57BDB
|
||||||
|
color13 #c678dd
|
||||||
|
|
||||||
|
# cyan
|
||||||
|
color6 #5cEfFF
|
||||||
|
color14 #46D9FF
|
||||||
|
|
||||||
|
# white
|
||||||
|
color7 #DFDFDF
|
||||||
|
color15 #bbc2cf
|
||||||
41
nix/modules/kitty/default.nix
Normal file
41
nix/modules/kitty/default.nix
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
enabled_layouts = "vertical, tall, grid";
|
||||||
|
background_opacity = "1.0";
|
||||||
|
macos_option_as_alt = "left";
|
||||||
|
};
|
||||||
|
|
||||||
|
font = {
|
||||||
|
package = pkgs.fira-code;
|
||||||
|
name = "Fira Code";
|
||||||
|
size = 14;
|
||||||
|
};
|
||||||
|
|
||||||
|
keybindings = {
|
||||||
|
"kitty_mod+enter" = "launch --cwd=current";
|
||||||
|
|
||||||
|
"kitty_mod+h" = "neighboring_window left";
|
||||||
|
"kitty_mod+j" = "neighboring_window down";
|
||||||
|
"kitty_mod+k" = "neighboring_window up";
|
||||||
|
"kitty_mod+l" = "neighboring_window right";
|
||||||
|
|
||||||
|
"ctrl+s>l" = "next_layout";
|
||||||
|
"ctrl+s>h" = "show_scrollback";
|
||||||
|
"ctrl+page_down" = "next_tab";
|
||||||
|
"ctrl+page_up" = "previous_tab";
|
||||||
|
"ctrl+shift+page_down" = "move_tab_forward";
|
||||||
|
"ctrl+shift+page_up" = "move_tab_backward";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
include ${./current-theme.conf}
|
||||||
|
|
||||||
|
mouse_map left click ungrabbed no-op
|
||||||
|
mouse_map ctrl+shift+left click ungrabbed mouse_click
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user