Terminal: migrate to Kitty
This commit is contained in:
parent
529dea61f8
commit
91fbc2bf98
6 changed files with 50 additions and 69 deletions
|
|
@ -12,7 +12,7 @@ in {
|
||||||
programs.rofi = {
|
programs.rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.rofi-wayland.override { plugins = [ pkgs.rofi-calc ]; };
|
package = pkgs.rofi-wayland.override { plugins = [ pkgs.rofi-calc ]; };
|
||||||
terminal = "alacritty";
|
terminal = "kitty";
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
icon-theme = "Paper";
|
icon-theme = "Paper";
|
||||||
cycle = true;
|
cycle = true;
|
||||||
|
|
|
||||||
|
|
@ -1,65 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
with lib.my;
|
|
||||||
let cfg = config.modules.desktop.alacritty;
|
|
||||||
in {
|
|
||||||
options.modules.desktop.alacritty = { enable = mkBoolOpt false; };
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
home-manager.users.${config.user.name} = {
|
|
||||||
programs.alacritty = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
colors = {
|
|
||||||
# (Gruvbox dark)
|
|
||||||
primary = {
|
|
||||||
background = "0x1d2021";
|
|
||||||
foreground = "0xebdbb2";
|
|
||||||
};
|
|
||||||
normal = {
|
|
||||||
black = "0x282828";
|
|
||||||
red = "0xcc241d";
|
|
||||||
green = "0x98971a";
|
|
||||||
yellow = "0xd79921";
|
|
||||||
blue = "0x458588";
|
|
||||||
magenta = "0xb16286";
|
|
||||||
cyan = "0x689d6a";
|
|
||||||
white = "0xa89984";
|
|
||||||
};
|
|
||||||
bright = {
|
|
||||||
black = "0x928374";
|
|
||||||
red = "0xfb4934";
|
|
||||||
green = "0xb8bb26";
|
|
||||||
yellow = "0xfabd2f";
|
|
||||||
blue = "0x83a598";
|
|
||||||
magenta = "0xd3869b";
|
|
||||||
cyan = "0x8ec07c";
|
|
||||||
white = "0xebdbb2";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
window = {
|
|
||||||
title = "Alacritty";
|
|
||||||
padding = {
|
|
||||||
x = 5;
|
|
||||||
y = 5;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
scrolling.history = 65535;
|
|
||||||
font.size = 8;
|
|
||||||
keyboard.bindings = [
|
|
||||||
{
|
|
||||||
key = "Up";
|
|
||||||
mods = "Control";
|
|
||||||
action = "IncreaseFontSize";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "Down";
|
|
||||||
mods = "Control";
|
|
||||||
action = "DecreaseFontSize";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -16,6 +16,20 @@ in {
|
||||||
sort_by = "alphabetical";
|
sort_by = "alphabetical";
|
||||||
linemode = "mtime";
|
linemode = "mtime";
|
||||||
};
|
};
|
||||||
|
preview = {
|
||||||
|
max_width = 1200;
|
||||||
|
max_height = 1800;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
theme = {
|
||||||
|
status = {
|
||||||
|
separator_open = "";
|
||||||
|
separator_close = "";
|
||||||
|
separator_style = {
|
||||||
|
fg = "black";
|
||||||
|
bg = "black";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ with lib.my;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.modules.desktop.hyprland;
|
cfg = config.modules.desktop.hyprland;
|
||||||
term = "${pkgs.alacritty}/bin/alacritty";
|
term = "${
|
||||||
|
config.home-manager.users.${config.user.name}.programs.kitty.package
|
||||||
|
}/bin/kitty";
|
||||||
in {
|
in {
|
||||||
options.modules.desktop.hyprland = { enable = mkBoolOpt false; };
|
options.modules.desktop.hyprland = { enable = mkBoolOpt false; };
|
||||||
|
|
||||||
|
|
@ -17,7 +19,7 @@ in {
|
||||||
gtk.enable = true;
|
gtk.enable = true;
|
||||||
qt.enable = true;
|
qt.enable = true;
|
||||||
};
|
};
|
||||||
alacritty.enable = true;
|
terminal.enable = true;
|
||||||
file-manager.enable = true;
|
file-manager.enable = true;
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
vscode.enable = true;
|
vscode.enable = true;
|
||||||
|
|
|
||||||
30
modules/desktop/terminal.nix
Normal file
30
modules/desktop/terminal.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
with lib.my;
|
||||||
|
let cfg = config.modules.desktop.terminal;
|
||||||
|
in {
|
||||||
|
options.modules.desktop.terminal = { enable = mkBoolOpt false; };
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home-manager.users.${config.user.name} = {
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
shellIntegration.enableZshIntegration = true;
|
||||||
|
settings = {
|
||||||
|
scrollback_lines = 65535;
|
||||||
|
enable_audio_bell = false;
|
||||||
|
font_size = 10;
|
||||||
|
};
|
||||||
|
keybindings = {
|
||||||
|
"ctrl+up" = "change_font_size all +2.0";
|
||||||
|
"ctrl+down" = "change_font_size all -2.0";
|
||||||
|
"shift+page_up" = "scroll_page_up";
|
||||||
|
"shift+page_down" = "scroll_page_down";
|
||||||
|
"ctrl+shift+comma" = "scroll_to_prompt -1";
|
||||||
|
"ctrl+shift+semicolon" = "scroll_to_prompt 1";
|
||||||
|
};
|
||||||
|
theme = "Gruvbox Dark";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -62,7 +62,7 @@ in {
|
||||||
"explorer.confirmDelete" = false;
|
"explorer.confirmDelete" = false;
|
||||||
"explorer.confirmDragAndDrop" = false;
|
"explorer.confirmDragAndDrop" = false;
|
||||||
"terminal.integrated.shellIntegration.enabled" = false;
|
"terminal.integrated.shellIntegration.enabled" = false;
|
||||||
"terminal.external.linuxExec" = "alacritty";
|
"terminal.external.linuxExec" = "kitty";
|
||||||
"terminal.integrated.scrollback" = 65535;
|
"terminal.integrated.scrollback" = 65535;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue