Make more theme parts dynamic
Pick Light vs Dark GTK theme based on variant name Pick correct theme for bat Team: stop following system theme
This commit is contained in:
parent
e670a4e391
commit
cfea36f08b
|
@ -2,6 +2,7 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
catppuccinVariant ? "Mocha",
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -36,7 +37,11 @@
|
||||||
};
|
};
|
||||||
gtk = with lib.strings; let
|
gtk = with lib.strings; let
|
||||||
accent = "Lavender";
|
accent = "Lavender";
|
||||||
variant = "Mocha";
|
variant = catppuccinVariant;
|
||||||
|
type =
|
||||||
|
if variant == "Latte"
|
||||||
|
then "Light"
|
||||||
|
else "Dark";
|
||||||
in {
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
|
@ -47,8 +52,8 @@
|
||||||
name = "Papirus-Dark";
|
name = "Papirus-Dark";
|
||||||
};
|
};
|
||||||
cursorTheme = {
|
cursorTheme = {
|
||||||
package = pkgs.catppuccin-cursors."${toLower variant}Dark";
|
package = pkgs.catppuccin-cursors."${toLower variant}${type}";
|
||||||
name = "Catppuccin-${variant}-Dark-Cursors";
|
name = "Catppuccin-${variant}-${type}-Cursors";
|
||||||
size = 32;
|
size = 32;
|
||||||
};
|
};
|
||||||
theme = let
|
theme = let
|
||||||
|
@ -59,7 +64,7 @@
|
||||||
size = toLower size;
|
size = toLower size;
|
||||||
variant = toLower variant;
|
variant = toLower variant;
|
||||||
};
|
};
|
||||||
name = "Catppuccin-${variant}-${size}-${accent}-Dark";
|
name = "Catppuccin-${variant}-${size}-${accent}-${type}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
xdg = {
|
xdg = {
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
awayOnSystemIdle = true;
|
awayOnSystemIdle = true;
|
||||||
closeAppOnCross = true;
|
closeAppOnCross = true;
|
||||||
electronCLIFlags = lib.mkIf config.wayland.windowManager.sway.enable [["ozone-platform" "wayland"]];
|
electronCLIFlags = lib.mkIf config.wayland.windowManager.sway.enable [["ozone-platform" "wayland"]];
|
||||||
followSystemTheme = true;
|
followSystemTheme = false;
|
||||||
notificationMethod = "electron";
|
notificationMethod = "electron";
|
||||||
optInTeamsV2 = true;
|
optInTeamsV2 = true;
|
||||||
spellCheckerLanguages = ["en_GB"];
|
spellCheckerLanguages = ["en_GB"];
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
catppuccinVariant ? "Mocha",
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -26,7 +27,7 @@
|
||||||
bat = {
|
bat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
theme = "catppuccinMocha";
|
theme = "catppuccin${catppuccinVariant}";
|
||||||
style = "plain,numbers,changes";
|
style = "plain,numbers,changes";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue