add Catppuccin color schemes for Konsole
This commit is contained in:
parent
9dad989f76
commit
79974b69a5
3 changed files with 56 additions and 23 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ user, ... }:
|
{ pkgs, user, ... }:
|
||||||
{
|
{
|
||||||
programs.plasma =
|
programs.plasma =
|
||||||
let
|
let
|
||||||
|
@ -133,30 +133,40 @@
|
||||||
kwinrc.Plugins.zoomEnabled = false;
|
kwinrc.Plugins.zoomEnabled = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.konsole = {
|
programs.konsole =
|
||||||
enable = true;
|
let
|
||||||
defaultProfile = "xonsh";
|
colorSchemesPackage = pkgs.callPackage ../packages/catppuccin-konsole.nix { inherit pkgs; };
|
||||||
profiles = {
|
in
|
||||||
"xonsh" = {
|
{
|
||||||
command = "/run/current-system/sw/bin/xonsh";
|
enable = true;
|
||||||
colorScheme = "Catppuccin-Mocha";
|
customColorSchemes = {
|
||||||
font = {
|
"Catppuccin Latte" = "${colorSchemesPackage}/themes/catppuccin-latte.colorscheme";
|
||||||
name = "ComicCodeLigatures Nerd Font";
|
"Catppuccin Frappe" = "${colorSchemesPackage}/themes/catppuccin-frappe.colorscheme";
|
||||||
size = 12;
|
"Catppuccin Macchiato" = "${colorSchemesPackage}/themes/catppuccin-macchiato.colorscheme";
|
||||||
};
|
"Catppuccin Mocha" = "${colorSchemesPackage}/themes/catppuccin-mocha.colorscheme";
|
||||||
extraConfig = {
|
};
|
||||||
"General" = {
|
defaultProfile = "xonsh";
|
||||||
"Directory" = "/home/${user}";
|
profiles = {
|
||||||
"Icon" = "nix-snowflake";
|
"xonsh" = {
|
||||||
"StartInCurrentSessionDir" = false;
|
command = "/run/current-system/sw/bin/xonsh";
|
||||||
|
colorScheme = "Catppuccin Mocha";
|
||||||
|
font = {
|
||||||
|
name = "ComicCodeLigatures Nerd Font";
|
||||||
|
size = 12;
|
||||||
};
|
};
|
||||||
"Interaction Options" = {
|
extraConfig = {
|
||||||
"AllowEscapedLinks" = true;
|
"General" = {
|
||||||
"OpenLinksByDirectClickEnabled" = true;
|
"Directory" = "/home/${user}";
|
||||||
"UnderlineFilesEnabled" = true;
|
"Icon" = "nix-snowflake";
|
||||||
|
"StartInCurrentSessionDir" = false;
|
||||||
|
};
|
||||||
|
"Interaction Options" = {
|
||||||
|
"AllowEscapedLinks" = true;
|
||||||
|
"OpenLinksByDirectClickEnabled" = true;
|
||||||
|
"UnderlineFilesEnabled" = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,10 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
customfonts = pkgs.callPackage ../packages/customfonts.nix { inherit pkgs; };
|
||||||
|
catppuccin-konsole = pkgs.callPackage ../packages/catppuccin-konsole.nix { inherit pkgs; };
|
||||||
kdePackages = with pkgs.kdePackages; [
|
kdePackages = with pkgs.kdePackages; [
|
||||||
|
catppuccin-konsole
|
||||||
plasma-browser-integration
|
plasma-browser-integration
|
||||||
];
|
];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
@ -21,7 +24,6 @@ let
|
||||||
libnotify
|
libnotify
|
||||||
hoppscotch
|
hoppscotch
|
||||||
];
|
];
|
||||||
customfonts = pkgs.callPackage ../packages/customfonts.nix { inherit pkgs; };
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.systemPackages = lib.lists.unique (kdePackages ++ packages);
|
environment.systemPackages = lib.lists.unique (kdePackages ++ packages);
|
||||||
|
|
21
packages/catppuccin-konsole.nix
Normal file
21
packages/catppuccin-konsole.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
pkgs.stdenv.mkDerivation {
|
||||||
|
name = "catppuccin-konsole";
|
||||||
|
version = "1.0.0";
|
||||||
|
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "catppuccin";
|
||||||
|
repo = "konsole";
|
||||||
|
rev = "3b64040e3f4ae5afb2347e7be8a38bc3cd8c73a8";
|
||||||
|
sha256 = "sha256-d5+ygDrNl2qBxZ5Cn4U7d836+ZHz77m6/yxTIANd9BU";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
install -Dm644 themes/*.colorscheme -t $out/themes
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue