Adding kitty

This commit is contained in:
Miguel Palhas
2024-10-02 18:15:37 +01:00
parent 14524587c2
commit 52dff5d699
6 changed files with 101 additions and 9 deletions
+17
View File
@@ -4,8 +4,25 @@
inputs.nixvim.homeManagerModules.nixvim
../common/programs/default.nix
../common/programs/hyprland.nix
../common/programs/kitty.nix
];
home.sessionVariables = {
LIBVA_DRIVER_NAME = "nvidia";
XDG_SESSION_TYPE = "wayland";
GDM_BACKEND = "nvidia-drm";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
};
wayland.windowManager.hyprland.settings = {
monitor = [ "eDP-1, preferred, 0x1080, 1.2, bitdepth, 8" ];
windowrulev2 = [
"float, class:thunar"
"move cursor -50% -50%, class:thunar"
"size 800 600, class:thunar"
];
};
colorscheme = inputs.nix-colors.colorSchemes.catppuccin-frappe;
programs = {
+18
View File
@@ -40,9 +40,27 @@
gaps_out = 0;
};
animations = {
bezier = "easeOutQuad, 0.5, 1, 0.89, 1";
animation = [
"windows, 1, 4, easeOutQuad"
"windowsMove, 1, 1, easeOutQuad"
"windowsOut, 1, 4, default, popin 80%"
"border, 1, 4, default"
"borderangle, 1, 4, default"
"fade, 1, 4, default"
"workspaces, 1, 3, default"
];
};
dwindle = { preserve_split = "yes"; };
master = { orientation = "center"; };
"exec-once" = [
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
];
"$mod" = "SUPER";
bind = [
"$mod, t, exec, kitty"
+42
View File
@@ -0,0 +1,42 @@
{ config, pkgs, ... }: {
programs.kitty = {
enable = true;
settings = {
confirm_os_window_close = 0;
enable_audio_bell = false;
enabled_layouts = "tall, grid, fat, splits";
# font
font_family = "FiraCode Nerd Font Reg";
bold_font = "FiraCode Nerd Font Bold";
italic_font = "VictorMono Nerd Font Mono Oblique";
bold_italic_font = "VictorMono Nerd Font Mono Bold Oblique";
font_size = 12;
disable_ligatures = "cursor";
# keys
keybindings = {
"kitty_mod+t" = "new_tab_with_cmd";
"kitty_mod+enter" = "new_window_with_cwd";
"kitty_mod+r" = "set_tab_title";
"kitty_mod+u" = "previous_tab";
"kitty_mod+i" = "next_tab";
"ctrl+shift+l" = "next_layout";
"ctrl+shift+left" = "resize_window narrower";
"ctrl+shift+right" = "resize_window right";
"ctrl+shift+0x27" = "change_font_size all +2.0";
"ctrl+shift+minus" = "change_font_size all -2.0";
"ctrl+shift+backspace" = "change_font_size all 0";
"kitty_mod+h" = "neighboring_window left";
"kitty_mod+j" = "neighboring_window down";
"kitty_mod+k" = "neighboring_window up";
"kitty_mod+l" = "neighboring_window right";
};
};
};
}
-7
View File
@@ -16,13 +16,6 @@ in {
networking.hostName = "arrakis";
home.sessionVariables = {
LIBVA_DRIVER_NAME = "nvidia";
XDG_SESSION_TYPE = "wayland";
GDM_BACKEND = "nvidia-drm";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
};
boot = {
loader = {
systemd-boot.enable = true;
+22 -2
View File
@@ -1,4 +1,4 @@
{ inputs, pkgs, ... }: {
{ inputs, pkgs, fonts, ... }: {
environment.systemPackages = [
# various
pkgs.google-chrome
@@ -19,8 +19,28 @@
# dev tools
pkgs.ferdium
pkgs.bruno
pkgs.kitty
pkgs.bun
pkgs.fira-code
];
fonts = {
enableDefaultPackages = true;
packages = with pkgs; [
ubuntu_font_family
libertine
fira-code
fira-code-symbols
(nerdfonts.override { fonts = [ "FiraCode" ]; })
];
fontconfig = {
defaultFonts = {
serif = [ "Libertine" ];
sansSerif = [ "Ubuntu" ];
monospace = [ "FiraCode" ];
};
};
};
}
+2
View File
@@ -5,6 +5,8 @@ let
in {
programs.hyprland.enable = true;
environment.systemPackages = [ pkgs.hyprcursor ];
services.greetd = {
enable = true;
settings = {