Add theming support

gtk, qt, cursor theme
This commit is contained in:
GHOSCHT 2024-02-04 20:47:59 +01:00
parent b166ce3656
commit 9c5c1adaac
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
3 changed files with 48 additions and 0 deletions

View file

@ -1,5 +1,6 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [ imports = [
./theming.nix
./firefox.nix ./firefox.nix
./alacritty.nix ./alacritty.nix
./wezterm.nix ./wezterm.nix

View file

@ -11,5 +11,19 @@
"flathub:app/us.zoom.Zoom//stable" "flathub:app/us.zoom.Zoom//stable"
"flathub:app/com.discordapp.Discord//stable" "flathub:app/com.discordapp.Discord//stable"
]; ];
overrides = {
"global" = {
filesystems = [
"~/.local/share/icons"
];
environment = {
"MOZ_ENABLE_WAYLAND" = 1;
};
sockets = [
"!x11"
"fallback-x11"
];
};
};
}; };
} }

View file

@ -0,0 +1,33 @@
{pkgs, ...}: {
home.pointerCursor = {
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Ice";
size = 25;
x11.enable = true;
gtk.enable = true;
};
# gtk.cursorTheme.package = pkgs.bibata-cursors;
# gtk.cursorTheme.name = "Bibata-Modern-Ice";
# home.file.".icons/bibata".source = "${pkgs.bibata-cursors}/share/icons/Bibata-Modern-Classic";
# xdg.dataFile."icons/bibata".source = "${pkgs.bibata-cursors}/share/icons/Bibata-Modern-Classic";
gtk = {
enable = true;
theme.package = pkgs.adw-gtk3;
theme.name = "adw-gtk3-dark";
iconTheme.package = pkgs.papirus-icon-theme;
iconTheme.name = "Papirus";
};
qt = {
enable = true;
platformTheme = "gtk";
style.package = pkgs.adwaita-qt;
style.name = "adwaita-dark";
};
home.packages = with pkgs; [
libsForQt5.qt5.qtquickcontrols2
libsForQt5.qt5.qtgraphicaleffects
];
}