Modules/Niri: Update gtk theme + fix flatpak themes
This commit is contained in:
@ -836,14 +836,18 @@ in
|
|||||||
# Force Wayland by default
|
# Force Wayland by default
|
||||||
# Context.sockets = ["wayland" "!x11" "!fallback-x11"]; # NOTE: Makes discord + steam crash
|
# Context.sockets = ["wayland" "!x11" "!fallback-x11"]; # NOTE: Makes discord + steam crash
|
||||||
|
|
||||||
Context.filesystems = ["/nix/store:ro"];
|
Context.filesystems = [
|
||||||
|
"/nix/store:ro"
|
||||||
|
"${config.home.homeDirectory}/.themes:ro"
|
||||||
|
"${config.home.homeDirectory}/.config/gtk-4.0:ro"
|
||||||
|
];
|
||||||
|
|
||||||
Environment = {
|
Environment = {
|
||||||
# Fix un-themed cursor in some Wayland apps
|
# Fix un-themed cursor in some Wayland apps
|
||||||
XCURSOR_PATH = "/run/host/user-share/icons:/run/host/share/icons";
|
XCURSOR_PATH = "/run/host/user-share/icons:/run/host/share/icons";
|
||||||
|
|
||||||
# Force correct theme for some GTK apps
|
# Force correct theme for some GTK apps
|
||||||
GTK_THEME = "Adwaita:light";
|
GTK_THEME = config.gtk.theme.name;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -29,8 +29,14 @@ in {
|
|||||||
gtk4.colorScheme = "dark";
|
gtk4.colorScheme = "dark";
|
||||||
|
|
||||||
theme = {
|
theme = {
|
||||||
name = "adw-gtk3-dark";
|
# name = "adw-gtk3-dark";
|
||||||
package = pkgs.adw-gtk3;
|
# package = pkgs.adw-gtk3;
|
||||||
|
name = "catppuccin-mocha-mauve-standard";
|
||||||
|
package = pkgs.catppuccin-gtk.override {
|
||||||
|
variant = "mocha";
|
||||||
|
accents = ["mauve"];
|
||||||
|
size = "standard";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk3.extraConfig = {
|
gtk3.extraConfig = {
|
||||||
@ -56,6 +62,9 @@ in {
|
|||||||
file.".config/DankMaterialShell/.firstlaunch".text = "";
|
file.".config/DankMaterialShell/.firstlaunch".text = "";
|
||||||
file.".config/DankMaterialShell/.changelog-1.4".text = "";
|
file.".config/DankMaterialShell/.changelog-1.4".text = "";
|
||||||
|
|
||||||
|
# Link theme for flatpak
|
||||||
|
file.".themes/${config.gtk.theme.name}".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}";
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
QT_QPA_PLATFORMTHEME = "gtk3"; # For Noctalia
|
QT_QPA_PLATFORMTHEME = "gtk3"; # For Noctalia
|
||||||
GDK_BACKEND = "wayland"; # For screen sharing
|
GDK_BACKEND = "wayland"; # For screen sharing
|
||||||
@ -75,7 +84,12 @@ in {
|
|||||||
|
|
||||||
nautilus # Fallback file chooser used by xdg-desktop-portal-gnome
|
nautilus # Fallback file chooser used by xdg-desktop-portal-gnome
|
||||||
|
|
||||||
# In case we fallback to the default config
|
# Catppuccin-GTK theme
|
||||||
|
sassc
|
||||||
|
gtk-engine-murrine
|
||||||
|
gnome-themes-extra
|
||||||
|
|
||||||
|
# In case we fallback to the default niri config/keybindings
|
||||||
alacritty
|
alacritty
|
||||||
fuzzel
|
fuzzel
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user