greetd: fix GTK theme configuration
This commit is contained in:
parent
33e9614a77
commit
663a9af88b
1 changed files with 38 additions and 33 deletions
|
@ -36,6 +36,30 @@ let
|
||||||
|
|
||||||
inputStr = moduleStr "input";
|
inputStr = moduleStr "input";
|
||||||
outputStr = moduleStr "output";
|
outputStr = moduleStr "output";
|
||||||
|
|
||||||
|
gtkTheme = {
|
||||||
|
name = "Colloid-Dark-Compact-Catppuccin";
|
||||||
|
package = pkgs.colloid-gtk-theme.override {
|
||||||
|
colorVariants = [ "dark" ];
|
||||||
|
sizeVariants = [ "compact" ];
|
||||||
|
tweaks = [
|
||||||
|
"catppuccin"
|
||||||
|
"rimless"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
iconTheme = {
|
||||||
|
name = "Colloid-Catppuccin-Dark";
|
||||||
|
package = pkgs.colloid-icon-theme.override {
|
||||||
|
schemeVariants = [ "catppuccin" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cursorTheme = {
|
||||||
|
name = "Catppuccin-Mocha-Dark-Cursors";
|
||||||
|
package = pkgs.catppuccin-cursors.mochaDark;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.eboskma.greetd = {
|
options.eboskma.greetd = {
|
||||||
|
@ -78,27 +102,10 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs; [
|
systemPackages = [
|
||||||
(colloid-gtk-theme.override {
|
gtkTheme.package
|
||||||
colorVariants = [ "dark" ];
|
iconTheme.package
|
||||||
sizeVariants = [ "compact" ];
|
cursorTheme.package
|
||||||
tweaks = [
|
|
||||||
"catppuccin"
|
|
||||||
"rimless"
|
|
||||||
];
|
|
||||||
})
|
|
||||||
(orchis-theme.override {
|
|
||||||
tweaks = [
|
|
||||||
"compact"
|
|
||||||
"macos"
|
|
||||||
];
|
|
||||||
border-radius = 5;
|
|
||||||
})
|
|
||||||
catppuccin-cursors.mochaDark
|
|
||||||
pantheon.elementary-icon-theme
|
|
||||||
(colloid-icon-theme.override {
|
|
||||||
schemeVariants = [ "catppuccin" ];
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
etc = {
|
etc = {
|
||||||
"greetd/sway-config" = {
|
"greetd/sway-config" = {
|
||||||
|
@ -140,9 +147,9 @@ in
|
||||||
"xdg/gtk-3.0/settings.ini" = {
|
"xdg/gtk-3.0/settings.ini" = {
|
||||||
text = generators.toINI { } {
|
text = generators.toINI { } {
|
||||||
Settings = {
|
Settings = {
|
||||||
gtk-theme-name = "Colloid-Dark-Compact-Catppuccin";
|
gtk-theme-name = gtkTheme.name;
|
||||||
gtk-icon-theme-name = "Colloid-Catppuccin-Dark";
|
gtk-icon-theme-name = iconTheme.name;
|
||||||
gtk-cursor-theme-name = "Catppuccin-Mocha-Dark-Cursors";
|
gtk-cursor-theme-name = cursorTheme.name;
|
||||||
gtk-application-prefer-dark-theme = "true";
|
gtk-application-prefer-dark-theme = "true";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -150,19 +157,17 @@ in
|
||||||
"xdg/gtk-4.0/settings.ini" = {
|
"xdg/gtk-4.0/settings.ini" = {
|
||||||
text = generators.toINI { } {
|
text = generators.toINI { } {
|
||||||
Settings = {
|
Settings = {
|
||||||
gtk-theme-name = "Colloid-Dark-Compact-Catppuccin";
|
gtk-theme-name = gtkTheme.name;
|
||||||
gtk-icon-theme-name = "Colloid-Catppuccin-Dark";
|
gtk-icon-theme-name = iconTheme.name;
|
||||||
gtk-cursor-theme-name = "Catppuccin-Mocha-Dark-Cursors";
|
gtk-cursor-theme-name = cursorTheme.name;
|
||||||
gtk-application-prefer-dark-theme = "true";
|
gtk-application-prefer-dark-theme = "true";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"xdg/gtk-4.0/assets".source =
|
|
||||||
"${homeCfg.gtk.theme.package}/share/themes/${homeCfg.gtk.theme.name}/gtk-4.0/assets";
|
|
||||||
"xdg/gtk-4.0/gtk.css".source =
|
|
||||||
"${homeCfg.gtk.theme.package}/share/themes/${homeCfg.gtk.theme.name}/gtk-4.0/gtk.css";
|
|
||||||
"xdg/gtk-4.0/gtk-dark.css".source =
|
|
||||||
"${homeCfg.gtk.theme.package}/share/themes/${homeCfg.gtk.theme.name}/gtk-4.0/gtk-dark.css";
|
|
||||||
};
|
};
|
||||||
|
"xdg/gtk-4.0/assets".source = "${gtkTheme.package}/share/themes/${gtkTheme.name}/gtk-4.0/assets";
|
||||||
|
"xdg/gtk-4.0/gtk.css".source = "${gtkTheme.package}/share/themes/${gtkTheme.name}/gtk-4.0/gtk.css";
|
||||||
|
"xdg/gtk-4.0/gtk-dark.css".source =
|
||||||
|
"${gtkTheme.package}/share/themes/${gtkTheme.name}/gtk-4.0/gtk-dark.css";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue