Modules/Color: Don't specify light/dark schemes, choose a single scheme where everything is based on
This commit is contained in:
@ -52,9 +52,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
color = {
|
color = {
|
||||||
lightScheme = "catppuccin-latte";
|
scheme = "catppuccin-mocha";
|
||||||
darkScheme = "catppuccin-mocha";
|
|
||||||
# font = "JetBrainsMono Nerd Font Mono";
|
|
||||||
font = builtins.head nixosConfig.fonts.fontconfig.defaultFonts.monospace;
|
font = builtins.head nixosConfig.fonts.fontconfig.defaultFonts.monospace;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) TEMPLATE;
|
inherit (config.modules) TEMPLATE color;
|
||||||
in {
|
in {
|
||||||
options.modules.TEMPLATE = import ./options.nix {inherit lib mylib;};
|
options.modules.TEMPLATE = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
|
@ -10,11 +10,7 @@ in {
|
|||||||
options.modules.color = import ./options.nix {inherit lib mylib;};
|
options.modules.color = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = let
|
config = let
|
||||||
lightDefs = import ./schemes/${color.lightScheme}.nix;
|
colorDefs = import ./schemes/${color.scheme}.nix;
|
||||||
darkDefs = import ./schemes/${color.darkScheme}.nix;
|
|
||||||
|
|
||||||
# Assignments will be generated from those keys
|
|
||||||
colorKeys = builtins.attrNames lightDefs;
|
|
||||||
|
|
||||||
mkColorAssignment = defs: key: {${key} = defs.${key};};
|
mkColorAssignment = defs: key: {${key} = defs.${key};};
|
||||||
mkStringColorAssignment = defs: key: {${key} = "#${defs.${key}}";};
|
mkStringColorAssignment = defs: key: {${key} = "#${defs.${key}}";};
|
||||||
@ -23,17 +19,20 @@ in {
|
|||||||
in {
|
in {
|
||||||
# Helper script that processes a visual mode selection and replaces
|
# Helper script that processes a visual mode selection and replaces
|
||||||
# referenced colors in-place with their counterparts in this module.
|
# referenced colors in-place with their counterparts in this module.
|
||||||
# Usage: '<,'>!applyColors<cr>
|
# Usage: ":'<,'>!applyColors<cr>"
|
||||||
home.packages = let
|
home.packages = let
|
||||||
applyColors = let
|
|
||||||
mkPythonColorDef = name: value: " '${name}': '${value}',";
|
mkPythonColorDef = name: value: " '${name}': '${value}',";
|
||||||
in
|
|
||||||
|
applyColors =
|
||||||
pkgs.writers.writePython3Bin
|
pkgs.writers.writePython3Bin
|
||||||
"applyColors"
|
"applyColors"
|
||||||
|
{
|
||||||
|
doCheck = false;
|
||||||
|
}
|
||||||
(
|
(
|
||||||
builtins.concatStringsSep "\n" [
|
builtins.concatStringsSep "\n" [
|
||||||
"colors: dict[str, str] = {"
|
"colors: dict[str, str] = {"
|
||||||
(config.modules.color.hex.dark
|
(config.modules.color.hex
|
||||||
|> builtins.mapAttrs mkPythonColorDef
|
|> builtins.mapAttrs mkPythonColorDef
|
||||||
|> builtins.attrValues
|
|> builtins.attrValues
|
||||||
|> builtins.concatStringsSep "\n")
|
|> builtins.concatStringsSep "\n")
|
||||||
@ -44,56 +43,34 @@ in {
|
|||||||
in [applyColors];
|
in [applyColors];
|
||||||
|
|
||||||
# This module sets its own options to the values specified in a colorscheme file.
|
# This module sets its own options to the values specified in a colorscheme file.
|
||||||
# TODO: This is fucking stupid. Add an option to set a colorscheme,
|
|
||||||
# then provide a single hex/rgb/rgbString set, not this light/dark shit.
|
|
||||||
modules.color = {
|
modules.color = {
|
||||||
hex = {
|
# RRGGBB (0-F)
|
||||||
light =
|
hex =
|
||||||
colorKeys
|
colorDefs
|
||||||
|> builtins.map (mkColorAssignment lightDefs)
|
|> builtins.attrNames
|
||||||
|
|> builtins.map (mkColorAssignment colorDefs)
|
||||||
|> lib.mergeAttrsList;
|
|> lib.mergeAttrsList;
|
||||||
|
|
||||||
dark =
|
# #RRGGBB (0-F)
|
||||||
colorKeys
|
hexS =
|
||||||
|> builtins.map (mkColorAssignment darkDefs)
|
colorDefs
|
||||||
|> lib.mergeAttrsList;
|
|> builtins.attrNames
|
||||||
};
|
|> builtins.map (mkStringColorAssignment colorDefs)
|
||||||
|
|
||||||
hexString = {
|
|
||||||
light =
|
|
||||||
colorKeys
|
|
||||||
|> builtins.map (mkStringColorAssignment lightDefs)
|
|
||||||
|> lib.mergeAttrsList;
|
|> lib.mergeAttrsList;
|
||||||
|
|
||||||
dark =
|
# [RR GG BB] (0-255)
|
||||||
colorKeys
|
rgb =
|
||||||
|> builtins.map (mkStringColorAssignment darkDefs)
|
colorDefs
|
||||||
|> lib.mergeAttrsList;
|
|> builtins.attrNames
|
||||||
};
|
|> builtins.map (mkRgbColorAssignment colorDefs)
|
||||||
|
|
||||||
rgb = {
|
|
||||||
light =
|
|
||||||
colorKeys
|
|
||||||
|> builtins.map (mkRgbColorAssignment lightDefs)
|
|
||||||
|> lib.mergeAttrsList;
|
|> lib.mergeAttrsList;
|
||||||
|
|
||||||
dark =
|
# RR,GG,BB (0-255)
|
||||||
colorKeys
|
rgbS =
|
||||||
|> builtins.map (mkRgbColorAssignment darkDefs)
|
colorDefs
|
||||||
|
|> builtins.attrNames
|
||||||
|
|> builtins.map (mkRgbStringColorAssignment colorDefs)
|
||||||
|> lib.mergeAttrsList;
|
|> lib.mergeAttrsList;
|
||||||
};
|
};
|
||||||
|
|
||||||
rgbString = {
|
|
||||||
light =
|
|
||||||
colorKeys
|
|
||||||
|> builtins.map (mkRgbStringColorAssignment lightDefs)
|
|
||||||
|> lib.mergeAttrsList;
|
|
||||||
|
|
||||||
dark =
|
|
||||||
colorKeys
|
|
||||||
|> builtins.map (mkRgbStringColorAssignment darkDefs)
|
|
||||||
|> lib.mergeAttrsList;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -2,25 +2,19 @@
|
|||||||
lib,
|
lib,
|
||||||
mylib,
|
mylib,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
with lib;
|
scheme = lib.mkOption {
|
||||||
with mylib.modules; {
|
type = lib.types.enum [
|
||||||
lightScheme = mkOption {
|
"catppuccin-latte"
|
||||||
type = types.str;
|
"catppuccin-mocha"
|
||||||
description = "The color scheme to use for light colors";
|
];
|
||||||
example = "catppuccin-latte";
|
description = "The color scheme to use";
|
||||||
default = "catppuccin-latte";
|
|
||||||
};
|
|
||||||
|
|
||||||
darkScheme = mkOption {
|
|
||||||
type = types.str;
|
|
||||||
description = "The color scheme to use for dark colors";
|
|
||||||
example = "catppuccin-mocha";
|
example = "catppuccin-mocha";
|
||||||
default = "catppuccin-mocha";
|
default = "catppuccin-mocha";
|
||||||
};
|
};
|
||||||
|
|
||||||
font = mkOption {
|
font = lib.mkOption {
|
||||||
type = types.str;
|
type = lib.types.str;
|
||||||
description = "The font to use";
|
description = "The font to use";
|
||||||
example = "JetBrainsMono Nerd Font Mono";
|
example = "JetBrainsMono Nerd Font Mono";
|
||||||
default = "JetBrainsMono Nerd Font Mono";
|
default = "JetBrainsMono Nerd Font Mono";
|
||||||
@ -28,23 +22,23 @@ with mylib.modules; {
|
|||||||
|
|
||||||
# These options will be populated automatically.
|
# These options will be populated automatically.
|
||||||
|
|
||||||
hex = mkOption {
|
hex = lib.mkOption {
|
||||||
type = types.attrs;
|
type = lib.types.attrs;
|
||||||
description = "Colors in \"RRGGBB\" hexadecimal format";
|
description = "Colors in \"RRGGBB\" hexadecimal format";
|
||||||
};
|
};
|
||||||
|
|
||||||
hexString = mkOption {
|
hexS = lib.mkOption {
|
||||||
type = types.attrs;
|
type = lib.types.attrs;
|
||||||
description = "Colors in \"#RRGGBB\" hexadecimal format";
|
description = "Colors in \"#RRGGBB\" hexadecimal format";
|
||||||
};
|
};
|
||||||
|
|
||||||
rgbString = mkOption {
|
rgb = lib.mkOption {
|
||||||
type = types.attrs;
|
type = lib.types.attrs;
|
||||||
description = "Colors in \"RR,GG,BB\" decimal format";
|
|
||||||
};
|
|
||||||
|
|
||||||
rgb = mkOption {
|
|
||||||
type = types.attrs;
|
|
||||||
description = "Colors in [RR GG BB] decimal format";
|
description = "Colors in [RR GG BB] decimal format";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rgbS = lib.mkOption {
|
||||||
|
type = lib.types.attrs;
|
||||||
|
description = "Colors in \"RR,GG,BB\" decimal format";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -6,42 +6,42 @@
|
|||||||
username,
|
username,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) fish;
|
inherit (config.modules) fish color;
|
||||||
in {
|
in {
|
||||||
options.modules.fish = import ./options.nix {inherit lib mylib;};
|
options.modules.fish = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf fish.enable {
|
config = lib.mkIf fish.enable {
|
||||||
home.file.".config/fish/themes/catppuccin-latte.theme".text = ''
|
home.file.".config/fish/themes/catppuccin-latte.theme".text = ''
|
||||||
# name: 'Catppuccin Latte'
|
# name: 'Catppuccin Mocha'
|
||||||
# url: 'https://github.com/catppuccin/fish'
|
# url: 'https://github.com/catppuccin/fish'
|
||||||
# preferred_background: eff1f5
|
# preferred_background: ${color.hex.base}
|
||||||
|
|
||||||
fish_color_normal 4c4f69
|
fish_color_normal ${color.hex.text}
|
||||||
fish_color_command 1e66f5
|
fish_color_command ${color.hex.blue}
|
||||||
fish_color_param dd7878
|
fish_color_param f2cdcd
|
||||||
fish_color_keyword d20f39
|
fish_color_keyword f38ba8
|
||||||
fish_color_quote 40a02b
|
fish_color_quote a6e3a1
|
||||||
fish_color_redirection ea76cb
|
fish_color_redirection f5c2e7
|
||||||
fish_color_end fe640b
|
fish_color_end fab387
|
||||||
fish_color_comment 8c8fa1
|
fish_color_comment 7f849c
|
||||||
fish_color_error d20f39
|
fish_color_error f38ba8
|
||||||
fish_color_gray 9ca0b0
|
fish_color_gray 6c7086
|
||||||
fish_color_selection --background=ccd0da
|
fish_color_selection --background=313244
|
||||||
fish_color_search_match --background=ccd0da
|
fish_color_search_match --background=313244
|
||||||
fish_color_option 40a02b
|
fish_color_option a6e3a1
|
||||||
fish_color_operator ea76cb
|
fish_color_operator f5c2e7
|
||||||
fish_color_escape e64553
|
fish_color_escape eba0ac
|
||||||
fish_color_autosuggestion 9ca0b0
|
fish_color_autosuggestion 6c7086
|
||||||
fish_color_cancel d20f39
|
fish_color_cancel f38ba8
|
||||||
fish_color_cwd df8e1d
|
fish_color_cwd f9e2af
|
||||||
fish_color_user 179299
|
fish_color_user 94e2d5
|
||||||
fish_color_host_remote 40a02b
|
fish_color_host ${color.hex.blue}
|
||||||
fish_color_host 1e66f5
|
fish_color_host_remote a6e3a1
|
||||||
fish_color_status d20f39
|
fish_color_status f38ba8
|
||||||
fish_pager_color_progress 9ca0b0
|
fish_pager_color_progress 6c7086
|
||||||
fish_pager_color_prefix ea76cb
|
fish_pager_color_prefix f5c2e7
|
||||||
fish_pager_color_completion 4c4f69
|
fish_pager_color_completion ${color.hex.text}
|
||||||
fish_pager_color_description 9ca0b0
|
fish_pager_color_description 6c7086
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
nixosConfig,
|
nixosConfig,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) hyprland color waybar;
|
inherit (config.modules) hyprland color;
|
||||||
|
|
||||||
always-bind = lib.mergeAttrsList [
|
always-bind = lib.mergeAttrsList [
|
||||||
{
|
{
|
||||||
@ -203,11 +203,11 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
options = {
|
options = {
|
||||||
background = "${color.hex.dark.text}";
|
background = "${color.hex.text}";
|
||||||
overlay = true;
|
overlay = true;
|
||||||
overlay_font = "${color.font}:12";
|
overlay_font = "${color.font}:12";
|
||||||
overlay_text_color = "${color.hex.dark.text}";
|
overlay_text_color = "${color.hex.text}";
|
||||||
overlay_background_color = "${color.hex.dark.base}";
|
overlay_background_color = "${color.hex.base}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -242,12 +242,12 @@ in {
|
|||||||
monitor = "";
|
monitor = "";
|
||||||
dots_center = true;
|
dots_center = true;
|
||||||
fade_on_empty = false;
|
fade_on_empty = false;
|
||||||
font_color = "rgb(${color.hex.dark.base})";
|
font_color = "rgb(${color.hex.base})";
|
||||||
font_family = "${color.font}";
|
font_family = "${color.font}";
|
||||||
inner_color = "rgb(${color.hex.dark.lavender})";
|
inner_color = "rgb(${color.hex.lavender})";
|
||||||
outer_color = "rgb(${color.hex.dark.base})";
|
outer_color = "rgb(${color.hex.base})";
|
||||||
outline_thickness = 2;
|
outline_thickness = 2;
|
||||||
placeholder_text = "<span foreground='\#\#${color.hex.dark.base}'>Password...</span>";
|
placeholder_text = "<span foreground='\#\#${color.hex.base}'>Password...</span>";
|
||||||
shadow_passes = 0;
|
shadow_passes = 0;
|
||||||
rounding = 5;
|
rounding = 5;
|
||||||
halign = "center";
|
halign = "center";
|
||||||
@ -261,7 +261,7 @@ in {
|
|||||||
position = "0, 300";
|
position = "0, 300";
|
||||||
monitor = "";
|
monitor = "";
|
||||||
text = ''cmd[update:1000] date -I'';
|
text = ''cmd[update:1000] date -I'';
|
||||||
color = "rgba(${color.hex.dark.text}AA)";
|
color = "rgba(${color.hex.text}AA)";
|
||||||
font_size = 22;
|
font_size = 22;
|
||||||
font_family = "${color.font}";
|
font_family = "${color.font}";
|
||||||
halign = "center";
|
halign = "center";
|
||||||
@ -273,7 +273,7 @@ in {
|
|||||||
position = "0, 200";
|
position = "0, 200";
|
||||||
monitor = "";
|
monitor = "";
|
||||||
text = ''cmd[update:1000] date +"%-H:%M"'';
|
text = ''cmd[update:1000] date +"%-H:%M"'';
|
||||||
color = "rgba(${color.hex.dark.text}AA)";
|
color = "rgba(${color.hex.text}AA)";
|
||||||
font_size = 95;
|
font_size = 95;
|
||||||
font_family = "${color.font} Extrabold";
|
font_family = "${color.font} Extrabold";
|
||||||
halign = "center";
|
halign = "center";
|
||||||
@ -339,26 +339,26 @@ in {
|
|||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
global = {
|
global = {
|
||||||
monitor = waybar.monitor;
|
monitor = config.modules.waybar.monitor;
|
||||||
font = "${color.font} 11";
|
font = "${color.font} 11";
|
||||||
offset = "10x10";
|
offset = "10x10";
|
||||||
background = "#${color.hex.light.base}";
|
background = "#${color.hex.base}";
|
||||||
foreground = "#${color.hex.light.text}";
|
foreground = "#${color.hex.text}";
|
||||||
frame_width = 2;
|
frame_width = 2;
|
||||||
corner_radius = 5;
|
corner_radius = 5;
|
||||||
separator_color = "frame";
|
separator_color = "frame";
|
||||||
};
|
};
|
||||||
|
|
||||||
urgency_low = {
|
urgency_low = {
|
||||||
frame_color = "#${color.hex.light.green}";
|
frame_color = "#${color.hex.green}";
|
||||||
};
|
};
|
||||||
|
|
||||||
urgency_normal = {
|
urgency_normal = {
|
||||||
frame_color = "#${color.hex.light.green}";
|
frame_color = "#${color.hex.green}";
|
||||||
};
|
};
|
||||||
|
|
||||||
urgency_critical = {
|
urgency_critical = {
|
||||||
frame_color = "#${color.hex.light.red}";
|
frame_color = "#${color.hex.red}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -386,8 +386,8 @@ in {
|
|||||||
gaps_out = 10;
|
gaps_out = 10;
|
||||||
border_size = 2;
|
border_size = 2;
|
||||||
|
|
||||||
"col.active_border" = "rgb(${color.hex.dark.lavender})";
|
"col.active_border" = "rgb(${color.hex.lavender})";
|
||||||
"col.inactive_border" = "rgba(${color.hex.dark.base}AA)";
|
"col.inactive_border" = "rgba(${color.hex.base}AA)";
|
||||||
};
|
};
|
||||||
|
|
||||||
group = {
|
group = {
|
||||||
@ -397,12 +397,12 @@ in {
|
|||||||
font_size = 10;
|
font_size = 10;
|
||||||
gradients = false;
|
gradients = false;
|
||||||
|
|
||||||
"col.active" = "rgb(${color.hex.dark.lavender})";
|
"col.active" = "rgb(${color.hex.lavender})";
|
||||||
"col.inactive" = "rgba(${color.hex.dark.base}AA)";
|
"col.inactive" = "rgba(${color.hex.base}AA)";
|
||||||
};
|
};
|
||||||
|
|
||||||
"col.border_active" = "rgb(${color.hex.dark.lavender})";
|
"col.border_active" = "rgb(${color.hex.lavender})";
|
||||||
"col.border_inactive" = "rgba(${color.hex.dark.base}AA)";
|
"col.border_inactive" = "rgba(${color.hex.base}AA)";
|
||||||
};
|
};
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
|
@ -71,8 +71,8 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/index.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/index.ts
|
||||||
"theme.bar.background" = "#${color.hex.light.base}";
|
"theme.bar.background" = "#${color.hex.base}";
|
||||||
"theme.bar.border.color" = "#${color.hex.dark.lavender}";
|
"theme.bar.border.color" = "#${color.hex.lavender}";
|
||||||
"theme.bar.border.location" = "full";
|
"theme.bar.border.location" = "full";
|
||||||
"theme.bar.border_radius" = "6px";
|
"theme.bar.border_radius" = "6px";
|
||||||
"theme.bar.border.width" = "2px";
|
"theme.bar.border.width" = "2px";
|
||||||
@ -93,7 +93,7 @@ in {
|
|||||||
"theme.bar.buttons.radius" = "6px";
|
"theme.bar.buttons.radius" = "6px";
|
||||||
"theme.bar.buttons.spacing" = "2px"; # NOTE: Horizontal inter-button spacing
|
"theme.bar.buttons.spacing" = "2px"; # NOTE: Horizontal inter-button spacing
|
||||||
"theme.bar.buttons.style" = "default";
|
"theme.bar.buttons.style" = "default";
|
||||||
"theme.bar.buttons.text" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.text" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.y_margins" = "2px"; # NOTE: Top/Bottom bar padding
|
"theme.bar.buttons.y_margins" = "2px"; # NOTE: Top/Bottom bar padding
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/general/index.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/general/index.ts
|
||||||
@ -123,19 +123,19 @@ in {
|
|||||||
"bar.workspaces.workspaces" = 9;
|
"bar.workspaces.workspaces" = 9;
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/workspaces.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/workspaces.ts
|
||||||
"theme.bar.buttons.workspaces.active" = "#${color.hex.dark.pink}";
|
"theme.bar.buttons.workspaces.active" = "#${color.hex.pink}";
|
||||||
"theme.bar.buttons.workspaces.available" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.workspaces.available" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.workspaces.background" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.workspaces.background" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.workspaces.border" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.workspaces.border" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.workspaces.enableBorder" = false;
|
"theme.bar.buttons.workspaces.enableBorder" = false;
|
||||||
"theme.bar.buttons.workspaces.fontSize" = "18px";
|
"theme.bar.buttons.workspaces.fontSize" = "18px";
|
||||||
"theme.bar.buttons.workspaces.hover" = "#${color.hex.dark.pink}";
|
"theme.bar.buttons.workspaces.hover" = "#${color.hex.pink}";
|
||||||
"theme.bar.buttons.workspaces.numbered_active_highlight_border" = "4px"; # border radius
|
"theme.bar.buttons.workspaces.numbered_active_highlight_border" = "4px"; # border radius
|
||||||
"theme.bar.buttons.workspaces.numbered_active_highlighted_text_color" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.workspaces.numbered_active_highlighted_text_color" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.workspaces.numbered_active_highlight_padding" = "6px";
|
"theme.bar.buttons.workspaces.numbered_active_highlight_padding" = "6px";
|
||||||
"theme.bar.buttons.workspaces.numbered_active_underline_color" = "#${color.hex.dark.pink}";
|
"theme.bar.buttons.workspaces.numbered_active_underline_color" = "#${color.hex.pink}";
|
||||||
"theme.bar.buttons.workspaces.numbered_inactive_padding" = "6px"; # make the same as numbered_active_highlight_padding to avoid layout jumping
|
"theme.bar.buttons.workspaces.numbered_inactive_padding" = "6px"; # make the same as numbered_active_highlight_padding to avoid layout jumping
|
||||||
"theme.bar.buttons.workspaces.occupied" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.workspaces.occupied" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.workspaces.smartHighlight" = "false";
|
"theme.bar.buttons.workspaces.smartHighlight" = "false";
|
||||||
"theme.bar.buttons.workspaces.spacing" = "6px"; # no visible difference?
|
"theme.bar.buttons.workspaces.spacing" = "6px"; # no visible difference?
|
||||||
|
|
||||||
@ -156,13 +156,13 @@ in {
|
|||||||
"bar.windowtitle.truncation_size" = 50;
|
"bar.windowtitle.truncation_size" = 50;
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/windowtitle.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/windowtitle.ts
|
||||||
"theme.bar.buttons.windowtitle.background" = "#${color.hex.dark.pink}";
|
"theme.bar.buttons.windowtitle.background" = "#${color.hex.pink}";
|
||||||
"theme.bar.buttons.windowtitle.border" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.windowtitle.border" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.windowtitle.enableBorder" = false;
|
"theme.bar.buttons.windowtitle.enableBorder" = false;
|
||||||
"theme.bar.buttons.windowtitle.icon_background" = "#${color.hex.dark.pink}";
|
"theme.bar.buttons.windowtitle.icon_background" = "#${color.hex.pink}";
|
||||||
"theme.bar.buttons.windowtitle.icon" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.windowtitle.icon" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.windowtitle.spacing" = "6px"; # Spacing between icon and text
|
"theme.bar.buttons.windowtitle.spacing" = "6px"; # Spacing between icon and text
|
||||||
"theme.bar.buttons.windowtitle.text" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.windowtitle.text" = "#${color.hex.base}";
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/media/index.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/media/index.ts
|
||||||
"bar.media.format" = "{artist: - }{title}";
|
"bar.media.format" = "{artist: - }{title}";
|
||||||
@ -172,13 +172,13 @@ in {
|
|||||||
"bar.media.truncation_size" = 30;
|
"bar.media.truncation_size" = 30;
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/media.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/media.ts
|
||||||
"theme.bar.buttons.media.background" = "#${color.hex.dark.mauve}";
|
"theme.bar.buttons.media.background" = "#${color.hex.mauve}";
|
||||||
"theme.bar.buttons.media.border" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.media.border" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.media.enableBorder" = false;
|
"theme.bar.buttons.media.enableBorder" = false;
|
||||||
"theme.bar.buttons.media.icon_background" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.media.icon_background" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.media.icon" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.media.icon" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.media.spacing" = "6px";
|
"theme.bar.buttons.media.spacing" = "6px";
|
||||||
"theme.bar.buttons.media.text" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.media.text" = "#${color.hex.base}";
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/cava/index.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/cava/index.ts
|
||||||
"bar.customModules.cava.showActiveOnly" = true;
|
"bar.customModules.cava.showActiveOnly" = true;
|
||||||
@ -186,73 +186,73 @@ in {
|
|||||||
# "bar.customModules.cava.leftClick" = "menu:media";
|
# "bar.customModules.cava.leftClick" = "menu:media";
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/cava.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/cava.ts
|
||||||
"theme.bar.buttons.modules.cava.background" = "#${color.hex.dark.red}";
|
"theme.bar.buttons.modules.cava.background" = "#${color.hex.red}";
|
||||||
"theme.bar.buttons.modules.cava.border" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.modules.cava.border" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.modules.cava.enableBorder" = false;
|
"theme.bar.buttons.modules.cava.enableBorder" = false;
|
||||||
"theme.bar.buttons.modules.cava.icon" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.modules.cava.icon" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.modules.cava.icon_background" = "#${color.hex.dark.red}";
|
"theme.bar.buttons.modules.cava.icon_background" = "#${color.hex.red}";
|
||||||
"theme.bar.buttons.modules.cava.spacing" = "6px";
|
"theme.bar.buttons.modules.cava.spacing" = "6px";
|
||||||
"theme.bar.buttons.modules.cava.text" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.modules.cava.text" = "#${color.hex.base}";
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/volume/index.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/volume/index.ts
|
||||||
"bar.volume.middleClick" = "kitty ncpamixer";
|
"bar.volume.middleClick" = "kitty ncpamixer";
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/volume.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/volume.ts
|
||||||
"theme.bar.buttons.volume.background" = "#${color.hex.dark.maroon}";
|
"theme.bar.buttons.volume.background" = "#${color.hex.maroon}";
|
||||||
"theme.bar.buttons.volume.enableBorder" = false;
|
"theme.bar.buttons.volume.enableBorder" = false;
|
||||||
"theme.bar.buttons.volume.border" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.volume.border" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.volume.icon_background" = "#${color.hex.dark.maroon}";
|
"theme.bar.buttons.volume.icon_background" = "#${color.hex.maroon}";
|
||||||
"theme.bar.buttons.volume.icon" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.volume.icon" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.volume.spacing" = "6px";
|
"theme.bar.buttons.volume.spacing" = "6px";
|
||||||
"theme.bar.buttons.volume.text" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.volume.text" = "#${color.hex.base}";
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/network/index.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/network/index.ts
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/network.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/network.ts
|
||||||
"theme.bar.buttons.network.background" = "#${color.hex.dark.peach}";
|
"theme.bar.buttons.network.background" = "#${color.hex.peach}";
|
||||||
"theme.bar.buttons.network.enableBorder" = false;
|
"theme.bar.buttons.network.enableBorder" = false;
|
||||||
"theme.bar.buttons.network.border" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.network.border" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.network.icon_background" = "#${color.hex.dark.peach}";
|
"theme.bar.buttons.network.icon_background" = "#${color.hex.peach}";
|
||||||
"theme.bar.buttons.network.icon" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.network.icon" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.network.spacing" = "6px";
|
"theme.bar.buttons.network.spacing" = "6px";
|
||||||
"theme.bar.buttons.network.text" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.network.text" = "#${color.hex.base}";
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/bluetooth/index.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/bluetooth/index.ts
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/bluetooth.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/bluetooth.ts
|
||||||
"theme.bar.buttons.bluetooth.background" = "#${color.hex.dark.yellow}";
|
"theme.bar.buttons.bluetooth.background" = "#${color.hex.yellow}";
|
||||||
"theme.bar.buttons.bluetooth.enableBorder" = false;
|
"theme.bar.buttons.bluetooth.enableBorder" = false;
|
||||||
"theme.bar.buttons.bluetooth.border" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.bluetooth.border" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.bluetooth.icon_background" = "#${color.hex.dark.yellow}";
|
"theme.bar.buttons.bluetooth.icon_background" = "#${color.hex.yellow}";
|
||||||
"theme.bar.buttons.bluetooth.icon" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.bluetooth.icon" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.bluetooth.spacing" = "6px";
|
"theme.bar.buttons.bluetooth.spacing" = "6px";
|
||||||
"theme.bar.buttons.bluetooth.text" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.bluetooth.text" = "#${color.hex.base}";
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/cpu/index.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/cpu/index.ts
|
||||||
"bar.customModules.cpu.middleClick" = "kitty btop";
|
"bar.customModules.cpu.middleClick" = "kitty btop";
|
||||||
"bar.customModules.cpu.pollingInterval" = 1000;
|
"bar.customModules.cpu.pollingInterval" = 1000;
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/cpu.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/cpu.ts
|
||||||
"theme.bar.buttons.modules.cpu.background" = "#${color.hex.dark.green}";
|
"theme.bar.buttons.modules.cpu.background" = "#${color.hex.green}";
|
||||||
"theme.bar.buttons.modules.cpu.enableBorder" = false;
|
"theme.bar.buttons.modules.cpu.enableBorder" = false;
|
||||||
"theme.bar.buttons.modules.cpu.border" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.modules.cpu.border" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.modules.cpu.icon_background" = "#${color.hex.dark.green}";
|
"theme.bar.buttons.modules.cpu.icon_background" = "#${color.hex.green}";
|
||||||
"theme.bar.buttons.modules.cpu.icon" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.modules.cpu.icon" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.modules.cpu.spacing" = "6px";
|
"theme.bar.buttons.modules.cpu.spacing" = "6px";
|
||||||
"theme.bar.buttons.modules.cpu.text" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.modules.cpu.text" = "#${color.hex.base}";
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/ram/index.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/ram/index.ts
|
||||||
"bar.customModules.ram.labelType" = "percentage"; # "used/total", "percentage"
|
"bar.customModules.ram.labelType" = "percentage"; # "used/total", "percentage"
|
||||||
"bar.customModules.ram.pollingInterval" = 1000;
|
"bar.customModules.ram.pollingInterval" = 1000;
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/ram.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/ram.ts
|
||||||
"theme.bar.buttons.modules.ram.background" = "#${color.hex.dark.teal}";
|
"theme.bar.buttons.modules.ram.background" = "#${color.hex.teal}";
|
||||||
"theme.bar.buttons.modules.ram.enableBorder" = false;
|
"theme.bar.buttons.modules.ram.enableBorder" = false;
|
||||||
"theme.bar.buttons.modules.ram.border" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.modules.ram.border" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.modules.ram.icon_background" = "#${color.hex.dark.teal}";
|
"theme.bar.buttons.modules.ram.icon_background" = "#${color.hex.teal}";
|
||||||
"theme.bar.buttons.modules.ram.icon" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.modules.ram.icon" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.modules.ram.spacing" = "6px";
|
"theme.bar.buttons.modules.ram.spacing" = "6px";
|
||||||
"theme.bar.buttons.modules.ram.text" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.modules.ram.text" = "#${color.hex.base}";
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/storage/index.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/storage/index.ts
|
||||||
"bar.customModules.storage.labelType" = "percentage"; # "used/total", "percentage"
|
"bar.customModules.storage.labelType" = "percentage"; # "used/total", "percentage"
|
||||||
@ -260,34 +260,34 @@ in {
|
|||||||
"bar.customModules.storage.pollingInterval" = 60000;
|
"bar.customModules.storage.pollingInterval" = 60000;
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/storage.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/storage.ts
|
||||||
"theme.bar.buttons.modules.storage.background" = "#${color.hex.dark.sky}";
|
"theme.bar.buttons.modules.storage.background" = "#${color.hex.sky}";
|
||||||
"theme.bar.buttons.modules.storage.enableBorder" = false;
|
"theme.bar.buttons.modules.storage.enableBorder" = false;
|
||||||
"theme.bar.buttons.modules.storage.border" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.modules.storage.border" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.modules.storage.icon_background" = "#${color.hex.dark.sky}";
|
"theme.bar.buttons.modules.storage.icon_background" = "#${color.hex.sky}";
|
||||||
"theme.bar.buttons.modules.storage.icon" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.modules.storage.icon" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.modules.storage.spacing" = "6px";
|
"theme.bar.buttons.modules.storage.spacing" = "6px";
|
||||||
"theme.bar.buttons.modules.storage.text" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.modules.storage.text" = "#${color.hex.base}";
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/clock/index.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/clock/index.ts
|
||||||
"bar.clock.format" = "%Y-%m-%d %H:%M";
|
"bar.clock.format" = "%Y-%m-%d %H:%M";
|
||||||
"bar.clock.showTime" = true;
|
"bar.clock.showTime" = true;
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/clock.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/clock.ts
|
||||||
"theme.bar.buttons.clock.background" = "#${color.hex.dark.sapphire}";
|
"theme.bar.buttons.clock.background" = "#${color.hex.sapphire}";
|
||||||
"theme.bar.buttons.clock.enableBorder" = false;
|
"theme.bar.buttons.clock.enableBorder" = false;
|
||||||
"theme.bar.buttons.clock.border" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.clock.border" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.clock.icon_background" = "#${color.hex.dark.sapphire}";
|
"theme.bar.buttons.clock.icon_background" = "#${color.hex.sapphire}";
|
||||||
"theme.bar.buttons.clock.icon" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.clock.icon" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.clock.spacing" = "6px";
|
"theme.bar.buttons.clock.spacing" = "6px";
|
||||||
"theme.bar.buttons.clock.text" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.clock.text" = "#${color.hex.base}";
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/systray/index.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/systray/index.ts
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/systray.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/systray.ts
|
||||||
"theme.bar.buttons.systray.background" = "#${color.hex.dark.blue}";
|
"theme.bar.buttons.systray.background" = "#${color.hex.blue}";
|
||||||
"theme.bar.buttons.systray.enableBorder" = false;
|
"theme.bar.buttons.systray.enableBorder" = false;
|
||||||
"theme.bar.buttons.systray.border" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.systray.border" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.systray.customIcon" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.systray.customIcon" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.systray.spacing" = "6px";
|
"theme.bar.buttons.systray.spacing" = "6px";
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/notifications/index.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/config/bar/notifications/index.ts
|
||||||
@ -295,20 +295,20 @@ in {
|
|||||||
"bar.notifications.show_total" = true;
|
"bar.notifications.show_total" = true;
|
||||||
|
|
||||||
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/notifications.ts
|
# https://github.com/Jas-SinghFSU/HyprPanel/blob/master/src/configuration/modules/theme/bar/buttons/notifications.ts
|
||||||
"theme.bar.buttons.notifications.background" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.notifications.background" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.notifications.enableBorder" = false;
|
"theme.bar.buttons.notifications.enableBorder" = false;
|
||||||
"theme.bar.buttons.notifications.border" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.notifications.border" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.notifications.icon_background" = "#${color.hex.dark.lavender}";
|
"theme.bar.buttons.notifications.icon_background" = "#${color.hex.lavender}";
|
||||||
"theme.bar.buttons.notifications.icon" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.notifications.icon" = "#${color.hex.base}";
|
||||||
"theme.bar.buttons.notifications.spacing" = "6px";
|
"theme.bar.buttons.notifications.spacing" = "6px";
|
||||||
"theme.bar.buttons.notifications.total" = "#${color.hex.dark.base}";
|
"theme.bar.buttons.notifications.total" = "#${color.hex.base}";
|
||||||
|
|
||||||
#
|
#
|
||||||
# TODO: Menus Config
|
# TODO: Menus Config
|
||||||
#
|
#
|
||||||
|
|
||||||
"theme.bar.menus.background" = "#${color.hex.light.base}";
|
"theme.bar.menus.background" = "#${color.hex.base}";
|
||||||
"theme.bar.menus.border.color" = "#${color.hex.dark.lavender}";
|
"theme.bar.menus.border.color" = "#${color.hex.lavender}";
|
||||||
"theme.bar.menus.border.radius" = "6px";
|
"theme.bar.menus.border.radius" = "6px";
|
||||||
"theme.bar.menus.border.size" = "2px";
|
"theme.bar.menus.border.size" = "2px";
|
||||||
"theme.bar.menus.buttons.radius" = "0.4em";
|
"theme.bar.menus.buttons.radius" = "0.4em";
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
mylib,
|
mylib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) kitty;
|
inherit (config.modules) kitty color;
|
||||||
in {
|
in {
|
||||||
options.modules.kitty = import ./options.nix {inherit lib mylib;};
|
options.modules.kitty = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
@ -27,9 +27,7 @@ in {
|
|||||||
"kitty_mod+l" = "next_layout";
|
"kitty_mod+l" = "next_layout";
|
||||||
};
|
};
|
||||||
|
|
||||||
settings = let
|
settings = {
|
||||||
color = config.modules.color.hex.dark;
|
|
||||||
in {
|
|
||||||
editor = config.home.sessionVariables.EDITOR;
|
editor = config.home.sessionVariables.EDITOR;
|
||||||
scrollback_lines = 10000;
|
scrollback_lines = 10000;
|
||||||
window_padding_width = 10; # Looks stupid with editors if bg doesn't match
|
window_padding_width = 10; # Looks stupid with editors if bg doesn't match
|
||||||
@ -50,74 +48,74 @@ in {
|
|||||||
#
|
#
|
||||||
|
|
||||||
# The basic colors
|
# The basic colors
|
||||||
background = "#${color.base}";
|
background = color.hexS.base;
|
||||||
foreground = "#${color.text}";
|
foreground = color.hexS.text;
|
||||||
selection_foreground = "#${color.base}";
|
selection_foreground = color.hexS.base;
|
||||||
selection_background = "#${color.rosewater}";
|
selection_background = color.hexS.rosewater;
|
||||||
|
|
||||||
# Cursor colors
|
# Cursor colors
|
||||||
cursor = "#${color.rosewater}";
|
cursor = color.hexS.rosewater;
|
||||||
cursor_text_color = "#${color.base}";
|
cursor_text_color = color.hexS.base;
|
||||||
|
|
||||||
# URL underline color when hovering with mouse
|
# URL underline color when hovering with mouse
|
||||||
url_color = "#${color.rosewater}";
|
url_color = color.hexS.rosewater;
|
||||||
|
|
||||||
# Kitty window border colors
|
# Kitty window border colors
|
||||||
active_border_color = "#${color.lavender}";
|
active_border_color = color.hexS.lavender;
|
||||||
inactive_border_color = "#${color.overlay0}";
|
inactive_border_color = color.hexS.overlay0;
|
||||||
bell_border_color = "#${color.yellow}";
|
bell_border_color = color.hexS.yellow;
|
||||||
|
|
||||||
# OS Window titlebar colors
|
# OS Window titlebar colors
|
||||||
wayland_titlebar_color = "system";
|
wayland_titlebar_color = "system";
|
||||||
macos_titlebar_color = "system";
|
macos_titlebar_color = "system";
|
||||||
|
|
||||||
# Tab bar colors
|
# Tab bar colors
|
||||||
active_tab_foreground = "#${color.base}";
|
active_tab_foreground = color.hexS.base;
|
||||||
active_tab_background = "#${color.lavender}";
|
active_tab_background = color.hexS.lavender;
|
||||||
inactive_tab_foreground = "#${color.text}";
|
inactive_tab_foreground = color.hexS.text;
|
||||||
inactive_tab_background = "#${color.crust}";
|
inactive_tab_background = color.hexS.crust;
|
||||||
tab_bar_background = "#${color.base}";
|
tab_bar_background = color.hexS.base;
|
||||||
|
|
||||||
# Color for marks (marked text in the terminal)
|
# Color for marks (marked text in the terminal)
|
||||||
mark1_foreground = "#${color.base}";
|
mark1_foreground = color.hexS.base;
|
||||||
mark1_background = "#${color.lavender}";
|
mark1_background = color.hexS.lavender;
|
||||||
mark2_foreground = "#${color.base}";
|
mark2_foreground = color.hexS.base;
|
||||||
mark2_background = "#${color.mauve}";
|
mark2_background = color.hexS.mauve;
|
||||||
mark3_foreground = "#${color.base}";
|
mark3_foreground = color.hexS.base;
|
||||||
mark3_background = "#${color.sapphire}";
|
mark3_background = color.hexS.sapphire;
|
||||||
|
|
||||||
# The 16 terminal colors
|
# The 16 terminal colors
|
||||||
# black
|
# black
|
||||||
color0 = "#${color.subtext1}";
|
color0 = color.hexS.subtext1;
|
||||||
color8 = "#${color.subtext0}";
|
color8 = color.hexS.subtext0;
|
||||||
|
|
||||||
# red
|
# red
|
||||||
color1 = "#${color.red}";
|
color1 = color.hexS.red;
|
||||||
color9 = "#${color.red}";
|
color9 = color.hexS.red;
|
||||||
|
|
||||||
# green
|
# green
|
||||||
color2 = "#${color.green}";
|
color2 = color.hexS.green;
|
||||||
color10 = "#${color.green}";
|
color10 = color.hexS.green;
|
||||||
|
|
||||||
# yellow
|
# yellow
|
||||||
color3 = "#${color.yellow}";
|
color3 = color.hexS.yellow;
|
||||||
color11 = "#${color.yellow}";
|
color11 = color.hexS.yellow;
|
||||||
|
|
||||||
# blue
|
# blue
|
||||||
color4 = "#${color.blue}";
|
color4 = color.hexS.blue;
|
||||||
color12 = "#${color.blue}";
|
color12 = color.hexS.blue;
|
||||||
|
|
||||||
# magenta
|
# magenta
|
||||||
color5 = "#${color.pink}";
|
color5 = color.hexS.pink;
|
||||||
color13 = "#${color.pink}";
|
color13 = color.hexS.pink;
|
||||||
|
|
||||||
# cyan
|
# cyan
|
||||||
color6 = "#${color.teal}";
|
color6 = color.hexS.teal;
|
||||||
color14 = "#${color.teal}";
|
color14 = color.hexS.teal;
|
||||||
|
|
||||||
# white
|
# white
|
||||||
color7 = "#${color.surface2}";
|
color7 = color.hexS.surface2;
|
||||||
color15 = "#${color.surface1}";
|
color15 = color.hexS.surface1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1026,40 +1026,40 @@ in {
|
|||||||
bubbles = ''
|
bubbles = ''
|
||||||
{
|
{
|
||||||
normal = {
|
normal = {
|
||||||
a = { fg = "#${color.hex.dark.base}", bg = "#${color.hex.dark.lavender}", gui = "bold" },
|
a = { fg = "#${color.hex.base}", bg = "#${color.hex.lavender}", gui = "bold" },
|
||||||
b = { fg = "#${color.hex.dark.text}", bg = "#${color.hex.dark.crust}" },
|
b = { fg = "#${color.hex.text}", bg = "#${color.hex.crust}" },
|
||||||
c = { fg = "#${color.hex.dark.text}", bg = "NONE" },
|
c = { fg = "#${color.hex.text}", bg = "NONE" },
|
||||||
},
|
},
|
||||||
|
|
||||||
insert = {
|
insert = {
|
||||||
a = { fg = "#${color.hex.dark.base}", bg = "#${color.hex.dark.green}", gui = "bold" },
|
a = { fg = "#${color.hex.base}", bg = "#${color.hex.green}", gui = "bold" },
|
||||||
b = { fg = "#${color.hex.dark.green}", bg = "#${color.hex.dark.crust}" },
|
b = { fg = "#${color.hex.green}", bg = "#${color.hex.crust}" },
|
||||||
},
|
},
|
||||||
|
|
||||||
visual = {
|
visual = {
|
||||||
a = { fg = "#${color.hex.dark.base}", bg = "#${color.hex.dark.mauve}", gui = "bold" },
|
a = { fg = "#${color.hex.base}", bg = "#${color.hex.mauve}", gui = "bold" },
|
||||||
b = { fg = "#${color.hex.dark.mauve}", bg = "#${color.hex.dark.crust}" },
|
b = { fg = "#${color.hex.mauve}", bg = "#${color.hex.crust}" },
|
||||||
},
|
},
|
||||||
|
|
||||||
replace = {
|
replace = {
|
||||||
a = { fg = "#${color.hex.dark.base}", bg = "#${color.hex.dark.red}", gui = "bold" },
|
a = { fg = "#${color.hex.base}", bg = "#${color.hex.red}", gui = "bold" },
|
||||||
b = { fg = "#${color.hex.dark.red}", bg = "#${color.hex.dark.crust}" },
|
b = { fg = "#${color.hex.red}", bg = "#${color.hex.crust}" },
|
||||||
},
|
},
|
||||||
|
|
||||||
-- terminal = {
|
-- terminal = {
|
||||||
-- a = { fg = "#${color.hex.dark.base}", bg = "#${color.hex.dark.green}", gui = "bold" },
|
-- a = { fg = "#${color.hex.base}", bg = "#${color.hex.green}", gui = "bold" },
|
||||||
-- b = { fg = "#${color.hex.dark.green}", bg = "#${color.hex.dark.crust}" },
|
-- b = { fg = "#${color.hex.green}", bg = "#${color.hex.crust}" },
|
||||||
-- },
|
-- },
|
||||||
|
|
||||||
command = {
|
command = {
|
||||||
a = { fg = "#${color.hex.dark.base}", bg = "#${color.hex.dark.peach}", gui = "bold" },
|
a = { fg = "#${color.hex.base}", bg = "#${color.hex.peach}", gui = "bold" },
|
||||||
b = { fg = "#${color.hex.dark.peach}", bg = "#${color.hex.dark.crust}" },
|
b = { fg = "#${color.hex.peach}", bg = "#${color.hex.crust}" },
|
||||||
},
|
},
|
||||||
|
|
||||||
inactive = {
|
inactive = {
|
||||||
a = { fg = "#${color.hex.dark.text}", bg = "#${color.hex.dark.base}" },
|
a = { fg = "#${color.hex.text}", bg = "#${color.hex.base}" },
|
||||||
b = { fg = "#${color.hex.dark.text}", bg = "#${color.hex.dark.base}" },
|
b = { fg = "#${color.hex.text}", bg = "#${color.hex.base}" },
|
||||||
c = { fg = "#${color.hex.dark.text}", bg = "NONE" },
|
c = { fg = "#${color.hex.text}", bg = "NONE" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
@ -1598,17 +1598,17 @@ in {
|
|||||||
opts = {
|
opts = {
|
||||||
line.__raw = ''
|
line.__raw = ''
|
||||||
function(line)
|
function(line)
|
||||||
local base = { fg = "#${color.hex.dark.base}", bg = "#${color.hex.dark.base}" }
|
local base = { fg = "#${color.hex.base}", bg = "#${color.hex.base}" }
|
||||||
local crust = { fg = "#${color.hex.dark.crust}", bg = "#${color.hex.dark.crust}" }
|
local crust = { fg = "#${color.hex.crust}", bg = "#${color.hex.crust}" }
|
||||||
local text = { fg = "#${color.hex.dark.text}", bg = "#${color.hex.dark.crust}" }
|
local text = { fg = "#${color.hex.text}", bg = "#${color.hex.crust}" }
|
||||||
local lavender = { fg = "#${color.hex.dark.lavender}", bg = "#${color.hex.dark.lavender}" }
|
local lavender = { fg = "#${color.hex.lavender}", bg = "#${color.hex.lavender}" }
|
||||||
|
|
||||||
local numtabs = vim.call("tabpagenr", "$")
|
local numtabs = vim.call("tabpagenr", "$")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
-- Head
|
-- Head
|
||||||
{
|
{
|
||||||
{ " NEOVIM ", hl = { fg = "#${color.hex.dark.base}", bg = "#${color.hex.dark.lavender}", style = "bold" } },
|
{ " NEOVIM ", hl = { fg = "#${color.hex.base}", bg = "#${color.hex.lavender}", style = "bold" } },
|
||||||
|
|
||||||
-- The separator gets a foreground and background fill (each have fg + bg).
|
-- The separator gets a foreground and background fill (each have fg + bg).
|
||||||
-- line.sep("", lavender, lavender),
|
-- line.sep("", lavender, lavender),
|
||||||
@ -1617,7 +1617,7 @@ in {
|
|||||||
-- Tabs
|
-- Tabs
|
||||||
line.tabs().foreach(function(tab)
|
line.tabs().foreach(function(tab)
|
||||||
-- Switch out the start separator instead of the ending one because the last separator is different
|
-- Switch out the start separator instead of the ending one because the last separator is different
|
||||||
local hl = tab.is_current() and { fg = "#${color.hex.dark.lavender}", bg = "#${color.hex.dark.crust}", style = "bold" } or text
|
local hl = tab.is_current() and { fg = "#${color.hex.lavender}", bg = "#${color.hex.crust}", style = "bold" } or text
|
||||||
local sep_start = tab.number() == 1 and "" or ""
|
local sep_start = tab.number() == 1 and "" or ""
|
||||||
local sep_end = tab.number() == numtabs and "" or ""
|
local sep_end = tab.number() == numtabs and "" or ""
|
||||||
|
|
||||||
|
@ -809,7 +809,7 @@ _: let
|
|||||||
# }
|
# }
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>cC";
|
key = "<leader>cc";
|
||||||
action = "<cmd>Neogen<cr>";
|
action = "<cmd>Neogen<cr>";
|
||||||
options.desc = "Generate Doc Comment";
|
options.desc = "Generate Doc Comment";
|
||||||
}
|
}
|
||||||
|
@ -277,14 +277,11 @@ in {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
".config/rmpc/themes/${themeName}.ron".text = let
|
".config/rmpc/themes/${themeName}.ron".text = let
|
||||||
light = color.hex.light;
|
bg = color.hex.base;
|
||||||
dark = color.hex.dark;
|
text = color.hex.text;
|
||||||
|
accent = color.hex.mauve;
|
||||||
bg = light.base;
|
accentHL = color.hex.red;
|
||||||
text = light.text;
|
surface = color.hex.base;
|
||||||
accent = dark.mauve;
|
|
||||||
accentHL = dark.red;
|
|
||||||
surface = dark.base;
|
|
||||||
in ''
|
in ''
|
||||||
#![enable(implicit_some)]
|
#![enable(implicit_some)]
|
||||||
#![enable(unwrap_newtypes)]
|
#![enable(unwrap_newtypes)]
|
||||||
@ -331,10 +328,10 @@ in {
|
|||||||
// The stuff shown in the status bar (on the progress bar)
|
// The stuff shown in the status bar (on the progress bar)
|
||||||
level_styles: (
|
level_styles: (
|
||||||
info: (fg: "#${accent}", bg: "#${surface}"),
|
info: (fg: "#${accent}", bg: "#${surface}"),
|
||||||
warn: (fg: "#${dark.yellow}", bg: "#${surface}"),
|
warn: (fg: "#${color.hex.yellow}", bg: "#${surface}"),
|
||||||
error: (fg: "#${dark.red}", bg: "#${surface}"),
|
error: (fg: "#${color.hex.red}", bg: "#${surface}"),
|
||||||
debug: (fg: "#${dark.green}", bg: "#${surface}"),
|
debug: (fg: "#${color.hex.green}", bg: "#${surface}"),
|
||||||
trace: (fg: "#${dark.mauve}", bg: "#${surface}"),
|
trace: (fg: "#${color.hex.mauve}", bg: "#${surface}"),
|
||||||
),
|
),
|
||||||
|
|
||||||
progress_bar: (
|
progress_bar: (
|
||||||
|
Reference in New Issue
Block a user