pkgs: Kitty

This commit is contained in:
Sweetbread 2024-09-30 12:16:54 +03:00
parent aed228da7a
commit 1922286529
6 changed files with 35 additions and 38 deletions

View File

@ -1,23 +0,0 @@
{ lib, pkgs, ... }: {
home.packages = [ pkgs.alacritty ];
programs.alacritty = {
enable = true;
settings = {
window = {
opacity = lib.mkDefault 0.5;
blur = true;
};
font = lib.mkDefault {
size = 13.0;
normal = {
family = "JetBrains Mono";
style = "Bold";
};
};
colors.primary.background = lib.mkDefault "#1d2021";
};
};
}

View File

@ -1,7 +1,7 @@
{
imports = [
./git.nix
./alacritty.nix
./kitty.nix
./qt.nix
./sops.nix
./style.nix

View File

@ -0,0 +1,14 @@
{ lib, pkgs, ... }: {
programs.kitty = {
enable = true;
settings = lib.mkDefault {
dynamic_background_opacity = "yes";
background_opacity = 0.5;
background_blur = true;
background = "#1d2021";
font_size = 13.0;
cursor_blink_interval = "0.5 ease-in-out";
};
};
programs.zsh.envExtra = "TERM=xterm-256color";
}

View File

@ -1,4 +1,10 @@
{ config, pkgs, ... }: {
{ config, pkgs, ... }: let
icon = pkgs.fetchurl {
url = "https://preview.redd.it/a2nga4jvjy291.png?width=640&crop=smart&auto=webp&s=7d1458b41101c960bc13c28a6b92c5a6ddc20210";
name = "nixos-chan.png";
sha256 = "sha256-9pleL+PiiylT8/aWw0iGve1iY3h0XohSQ7MVILzabHY=";
};
in {
home.packages = [ pkgs.neofetch ];
xdg.configFile."neofetch/config.conf".text = ''
print_info() {
@ -87,7 +93,7 @@ color_blocks="on"
block_width=3
block_height=1
col_offset="auto"
bar_char_elapsed="*"
bar_char_elapsed="="
bar_char_total="."
bar_border="on"
bar_length=15
@ -96,8 +102,8 @@ bar_color_total="distro"
memory_display="infobar"
battery_display="off"
disk_display="infobar"
image_backend="ueberzug"
image_source=/home/sweetbread/Downloads/a2nga4jvjy291.png
image_backend="kitty"
image_source=${icon}
ascii_distro="auto"
ascii_colors=(distro)
ascii_bold="on"

View File

@ -1,7 +1,7 @@
{ pkgs, lib, config, ... }: {
home.packages = with pkgs; [
swww
alacritty
kitty
waybar
pamixer
wofi
@ -210,12 +210,12 @@
];
bind = [
"$mainMod, V, exec, alacritty --class clipse -e clipse "
"$mainMod, V, exec, kitty --class clipse -e clipse "
"$mainMod, Return, exec, alacritty"
"$mainMod, Return, exec, kitty"
"$mainMod, Q, killactive,"
"$mainMod, M, exit,"
"$mainMod, E, exec, alacritty -e sh -c yazi"
"$mainMod, E, exec, kitty -e sh -c yazi"
"$mainMod, F, togglefloating,"
"$mainMod, D, exec, wofi --show drun"
"$mainMod, P, pseudo, # dwindle"
@ -284,10 +284,10 @@
", XF86MonBrightnessUp, exec, brightnessctl set +5% "
# Configuration files
''$mainMod ALT, N, exec, alacritty -e sh -c "rb"''
''$mainMod ALT, C, exec, alacritty -e sh -c "conf"''
''$mainMod ALT, H, exec, alacritty -e sh -c "$EDITOR ~/nix/home-manager/modules/wms/hyprland.nix"''
''$mainMod ALT, W, exec, alacritty -e sh -c "$EDITOR ~/nix/home-manager/modules/wms/waybar.nix"''
''$mainMod ALT, N, exec, kitty -e sh -c "rb"''
''$mainMod ALT, C, exec, kitty -e sh -c "conf"''
''$mainMod ALT, H, exec, kitty -e sh -c "$EDITOR ~/nix/home-manager/modules/wms/hyprland.nix"''
''$mainMod ALT, W, exec, kitty -e sh -c "$EDITOR ~/nix/home-manager/modules/wms/waybar.nix"''
" , Print, exec, grimblast --notify copy output"
"CTRL, Print, exec, grimblast --notify copy area"

View File

@ -100,7 +100,7 @@
car = "";
default = ["" "" ""];
};
on-click = "alacritty --class pulsemixer -e pulsemixer";
on-click = "kitty --class pulsemixer -e pulsemixer";
min-length = 13;
};
@ -137,7 +137,7 @@
tooltip-format-ethernet = "{ifname} ";
tooltip-format-disconnected = "Disconnected";
max-length = 50;
on-click = "alacritty --class nmtui -e sh -c nmtui";
on-click = "kitty --class nmtui -e sh -c nmtui";
};
"backlight" = {