Compare commits
3 Commits
33f052654b
...
f64dcd072c
| Author | SHA1 | Date | |
|---|---|---|---|
| f64dcd072c | |||
| d60f809f1f | |||
| 5a77322ada |
@ -40,6 +40,13 @@ in
|
||||
default = "catppuccin-mocha";
|
||||
};
|
||||
|
||||
font = mkOption {
|
||||
type = types.str;
|
||||
description = "The font to use";
|
||||
example = "JetBrainsMono Nerd Font Mono";
|
||||
default = "JetBrainsMono Nerd Font Mono";
|
||||
};
|
||||
|
||||
keys = mkOption {
|
||||
type = types.listOf types.str;
|
||||
description = "The names of all possible colors";
|
||||
|
||||
@ -11,6 +11,7 @@
|
||||
...
|
||||
}: let
|
||||
cfg = config.modules.hyprland;
|
||||
color = config.modules.color;
|
||||
|
||||
# This function is mapped to the "cfg.monitors" attrSet.
|
||||
# For each key-value entry in "cfg.monitors",
|
||||
@ -190,7 +191,13 @@ in {
|
||||
imv = {
|
||||
enable = true;
|
||||
settings = {
|
||||
options.background = "ffffff";
|
||||
options = {
|
||||
background = "${color.dark.text}";
|
||||
overlay = true;
|
||||
overlay_font = "${color.font}:12";
|
||||
overlay_text_color = "${color.dark.text}";
|
||||
overlay_background_color = "${color.dark.base}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@ -224,11 +231,12 @@ in {
|
||||
monitor = "";
|
||||
dots_center = true;
|
||||
fade_on_empty = false;
|
||||
font_color = "rgb(1E1E2E)";
|
||||
inner_color = "rgb(B4BEFE)";
|
||||
outer_color = "rgb(B4BEFE)";
|
||||
font_color = "rgb(${color.dark.base})";
|
||||
font_family = "${color.font}";
|
||||
inner_color = "rgb(${color.dark.lavender})";
|
||||
outer_color = "rgb(${color.dark.base})";
|
||||
outline_thickness = 2;
|
||||
placeholder_text = "<span foreground='\#\#1E1E2E'>Password...</span>";
|
||||
placeholder_text = "<span foreground='\#\#${color.dark.base}'>Password...</span>";
|
||||
shadow_passes = 0;
|
||||
rounding = 5;
|
||||
halign = "center";
|
||||
@ -242,9 +250,9 @@ in {
|
||||
position = "0, 300";
|
||||
monitor = "";
|
||||
text = ''cmd[update:1000] date -I'';
|
||||
color = "rgba(242, 243, 244, 0.75)";
|
||||
color = "rgba(${color.dark.text}AA)";
|
||||
font_size = 22;
|
||||
# font_family = "JetBrains Mono";
|
||||
font_family = "${color.font}";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
@ -254,9 +262,9 @@ in {
|
||||
position = "0, 200";
|
||||
monitor = "";
|
||||
text = ''cmd[update:1000] date +"%-H:%M"'';
|
||||
color = "rgba(242, 243, 244, 0.75)";
|
||||
color = "rgba(${color.dark.text}AA)";
|
||||
font_size = 95;
|
||||
# font_family = "JetBrains Mono Extrabold";
|
||||
font_family = "${color.font} Extrabold";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
@ -317,28 +325,25 @@ in {
|
||||
settings = {
|
||||
global = {
|
||||
monitor = 1;
|
||||
font = "JetBrains Nerd Font Mono 11";
|
||||
font = "${color.font} 11";
|
||||
offset = "20x20";
|
||||
frame_color = "#1E66F5";
|
||||
background = "#${color.light.base}";
|
||||
foreground = "#${color.light.text}";
|
||||
frame_width = 2;
|
||||
corner_radius = 5;
|
||||
separator_color = "frame";
|
||||
};
|
||||
|
||||
urgency_low = {
|
||||
background = "#EFF1F5";
|
||||
foreground = "#4C4F69";
|
||||
frame_color = "#${color.light.green}";
|
||||
};
|
||||
|
||||
urgency_normal = {
|
||||
background = "#EFF1F5";
|
||||
foreground = "#4C4F69";
|
||||
frame_color = "#${color.light.yellow}";
|
||||
};
|
||||
|
||||
urgency_critical = {
|
||||
background = "#EFF1F5";
|
||||
foreground = "#4C4F69";
|
||||
frame_color = "#FE640B";
|
||||
frame_color = "#${color.light.red}";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -357,8 +362,8 @@ in {
|
||||
gaps_out = 10;
|
||||
border_size = 2;
|
||||
|
||||
"col.active_border" = "rgb(B4BEFE)";
|
||||
"col.inactive_border" = "rgba(B4BEFE77)";
|
||||
"col.active_border" = "rgb(${color.dark.lavender})";
|
||||
"col.inactive_border" = "rgba(${color.dark.base}AA)";
|
||||
};
|
||||
|
||||
group = {
|
||||
@ -368,8 +373,8 @@ in {
|
||||
gradients = false;
|
||||
};
|
||||
|
||||
"col.border_active" = "rgb(B4BEFE)";
|
||||
"col.border_inactive" = "rgba(B4BEFEAA)";
|
||||
"col.border_active" = "rgb(${color.dark.lavender})";
|
||||
"col.border_inactive" = "rgba(${color.dark.base}AA)";
|
||||
};
|
||||
|
||||
input = {
|
||||
@ -457,9 +462,6 @@ in {
|
||||
decoration = {
|
||||
rounding = 5;
|
||||
drop_shadow = false;
|
||||
shadow_range = 4;
|
||||
shadow_render_power = 3;
|
||||
"col.shadow" = "rgba(1A1A1AEE)";
|
||||
|
||||
blur = {
|
||||
enabled = true;
|
||||
|
||||
@ -1,15 +1,14 @@
|
||||
# TODO: Expose some settings
|
||||
{
|
||||
config,
|
||||
nixosConfig,
|
||||
lib,
|
||||
mylib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with mylib.modules; let
|
||||
cfg = config.modules.kitty;
|
||||
color = config.modules.color;
|
||||
# cfgnv = config.modules.neovim;
|
||||
in {
|
||||
options.modules.kitty = import ./options.nix {inherit lib mylib;};
|
||||
@ -20,8 +19,7 @@ in {
|
||||
shellIntegration.enableFishIntegration = true;
|
||||
|
||||
font = {
|
||||
# package = pkgs.victor-mono;
|
||||
name = "JetBrainsMono Nerd Font Mono";
|
||||
name = "${color.font}";
|
||||
size = 12;
|
||||
};
|
||||
|
||||
@ -32,9 +30,9 @@ in {
|
||||
};
|
||||
|
||||
settings = {
|
||||
editor = "hx";
|
||||
editor = config.home.sessionVariables.EDITOR;
|
||||
scrollback_lines = 10000;
|
||||
window_padding_width = 10; # Looks stupid with helix if bg doesn't match
|
||||
window_padding_width = 10; # Looks stupid with editors if bg doesn't match
|
||||
# hide_window_decorations = "yes";
|
||||
enabled_layouts = "grid,vertical,horizontal";
|
||||
|
||||
@ -44,82 +42,82 @@ in {
|
||||
tab_bar_min_tabs = 1;
|
||||
tab_bar_edge = "bottom";
|
||||
tab_bar_style = "powerline";
|
||||
tab_powerline_style = "slanted";
|
||||
tab_powerline_style = "round";
|
||||
tab_title_template = "{title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}";
|
||||
|
||||
#
|
||||
# Catppuccin Light Theme
|
||||
# Color Theme
|
||||
#
|
||||
|
||||
# The basic colors
|
||||
foreground = "#4C4F69";
|
||||
background = "#EFF1F5";
|
||||
selection_foreground = "#EFF1F5";
|
||||
selection_background = "#DC8A78";
|
||||
foreground = "#${color.light.text}";
|
||||
background = "#${color.light.base}";
|
||||
selection_foreground = "#${color.light.base}";
|
||||
selection_background = "#${color.light.rosewater}";
|
||||
|
||||
# Cursor colors
|
||||
cursor = "#DC8A78";
|
||||
cursor_text_color = "#EFF1F5";
|
||||
cursor = "#${color.light.rosewater}";
|
||||
cursor_text_color = "#${color.light.base}";
|
||||
|
||||
# URL underline color when hovering with mouse
|
||||
url_color = "#DC8A78";
|
||||
url_color = "#${color.light.rosewater}";
|
||||
|
||||
# Kitty window border colors
|
||||
active_border_color = "#7287FD";
|
||||
inactive_border_color = "#9CA0B0";
|
||||
bell_border_color = "#DF8E1D";
|
||||
active_border_color = "#${color.light.lavender}";
|
||||
inactive_border_color = "#${color.light.overlay0}";
|
||||
bell_border_color = "#${color.light.yellow}";
|
||||
|
||||
# OS Window titlebar colors
|
||||
wayland_titlebar_color = "system";
|
||||
macos_titlebar_color = "system";
|
||||
|
||||
# Tab bar colors
|
||||
active_tab_foreground = "#EFF1F5";
|
||||
active_tab_background = "#8839EF";
|
||||
inactive_tab_foreground = "#4C4F69";
|
||||
inactive_tab_background = "#9CA0B0";
|
||||
tab_bar_background = "#BCC0CC";
|
||||
active_tab_foreground = "#${color.light.base}";
|
||||
active_tab_background = "#${color.light.mauve}";
|
||||
inactive_tab_foreground = "#${color.light.text}";
|
||||
inactive_tab_background = "#${color.light.overlay0}";
|
||||
tab_bar_background = "#${color.light.surface1}";
|
||||
|
||||
# Colors for marks (marked text in the terminal)
|
||||
mark1_foreground = "#EFF1F5";
|
||||
mark1_background = "#7287fD";
|
||||
mark2_foreground = "#EFF1F5";
|
||||
mark2_background = "#8839EF";
|
||||
mark3_foreground = "#EFF1F5";
|
||||
mark3_background = "#209FB5";
|
||||
# Color for marks (marked text in the terminal)
|
||||
mark1_foreground = "#${color.light.base}";
|
||||
mark1_background = "#${color.light.lavender}";
|
||||
mark2_foreground = "#${color.light.base}";
|
||||
mark2_background = "#${color.light.mauve}";
|
||||
mark3_foreground = "#${color.light.base}";
|
||||
mark3_background = "#${color.light.sapphire}";
|
||||
|
||||
# The 16 terminal colors
|
||||
# black
|
||||
color0 = "#5C5F77";
|
||||
color8 = "#6C6F85";
|
||||
color0 = "#${color.light.subtext1}";
|
||||
color8 = "#${color.light.subtext0}";
|
||||
|
||||
# red
|
||||
color1 = "#D20F39";
|
||||
color9 = "#D20F39";
|
||||
color1 = "#${color.light.red}";
|
||||
color9 = "#${color.light.red}";
|
||||
|
||||
# green
|
||||
color2 = "#40A02B";
|
||||
color10 = "#40A02B";
|
||||
color2 = "#${color.light.green}";
|
||||
color10 = "#${color.light.green}";
|
||||
|
||||
# yellow
|
||||
color3 = "#DF8E1D";
|
||||
color11 = "#DF8E1D";
|
||||
color3 = "#${color.light.yellow}";
|
||||
color11 = "#${color.light.yellow}";
|
||||
|
||||
# blue
|
||||
color4 = "#1E66F5";
|
||||
color12 = "#1E66F5";
|
||||
color4 = "#${color.light.blue}";
|
||||
color12 = "#${color.light.blue}";
|
||||
|
||||
# magenta
|
||||
color5 = "#EA76CB";
|
||||
color13 = "#EA76CB";
|
||||
color5 = "#${color.light.pink}";
|
||||
color13 = "#${color.light.pink}";
|
||||
|
||||
# cyan
|
||||
color6 = "#179299";
|
||||
color14 = "#179299";
|
||||
color6 = "#${color.light.teal}";
|
||||
color14 = "#${color.light.teal}";
|
||||
|
||||
# white
|
||||
color7 = "#ACB0BE";
|
||||
color15 = "#BCC0CC";
|
||||
color7 = "#${color.light.surface2}";
|
||||
color15 = "#${color.light.surface1}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user