home/theme: use adwaita icon && cleanup
This commit is contained in:
parent
21911abf53
commit
87635c85d1
2 changed files with 20 additions and 36 deletions
|
@ -1,12 +1,5 @@
|
||||||
{
|
{pkgs, ...}: {
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.packages = [pkgs.gnome.nautilus];
|
home.packages = [pkgs.gnome.nautilus];
|
||||||
xdg.configFile."gtk-3.0/bookmarks".text = ''
|
|
||||||
file://${config.home.homeDirectory}/Documents/Projects/git-repos/github.com/Guanran928/flake
|
|
||||||
'';
|
|
||||||
dconf.settings = {
|
dconf.settings = {
|
||||||
"org/gnome/nautilus/list-view".default-zoom-level = "small";
|
"org/gnome/nautilus/list-view".default-zoom-level = "small";
|
||||||
"org/gnome/nautilus/preferences".default-folder-viewer = "list-view";
|
"org/gnome/nautilus/preferences".default-folder-viewer = "list-view";
|
||||||
|
|
|
@ -4,49 +4,40 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
gtk.enable = true;
|
|
||||||
gtk.gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
|
||||||
|
|
||||||
### Cursor
|
|
||||||
home.pointerCursor = {
|
home.pointerCursor = {
|
||||||
gtk.enable = true;
|
|
||||||
x11.enable = true;
|
|
||||||
name = "Adwaita";
|
name = "Adwaita";
|
||||||
package = pkgs.gnome.adwaita-icon-theme;
|
package = pkgs.gnome.adwaita-icon-theme;
|
||||||
size = 24;
|
size = 24;
|
||||||
|
x11.enable = true;
|
||||||
|
gtk.enable = true;
|
||||||
};
|
};
|
||||||
# gtk.cursorTheme is unneeded
|
|
||||||
# https://github.com/nix-community/home-manager/blob/8765d4e38aa0be53cdeee26f7386173e6c65618d/modules/config/home-cursor.nix#L179C33-L179C33
|
|
||||||
|
|
||||||
### Icon
|
|
||||||
gtk = {
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
||||||
|
|
||||||
|
gtk3.bookmarks = [
|
||||||
|
"file://${config.home.homeDirectory}/Documents/Projects/git-repos/github.com/Guanran928/flake"
|
||||||
|
];
|
||||||
|
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
#name = "Tela-dracula-dark";
|
#name = "Tela-dracula-dark";
|
||||||
#package = pkgs.tela-icon-theme;
|
#package = pkgs.tela-icon-theme;
|
||||||
name = "Papirus-Dark";
|
#name = "Papirus-Dark";
|
||||||
package = pkgs.papirus-icon-theme;
|
#package = pkgs.papirus-icon-theme;
|
||||||
};
|
name = "Adwaita";
|
||||||
|
package = pkgs.gnome.adwaita-icon-theme;
|
||||||
};
|
};
|
||||||
|
|
||||||
### GTK
|
theme = {
|
||||||
gtk.theme = {
|
|
||||||
name = "adw-gtk3-dark";
|
name = "adw-gtk3-dark";
|
||||||
package = pkgs.adw-gtk3;
|
package = pkgs.adw-gtk3;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
dconf.settings."org/gnome/desktop/interface"."color-scheme" = "prefer-dark";
|
||||||
|
|
||||||
# ??? this commit broke nautilus's spacing ???
|
# ??? this commit broke nautilus's spacing ???
|
||||||
# https://github.com/nix-community/home-manager/commit/e9b9ecef4295a835ab073814f100498716b05a96
|
# https://github.com/nix-community/home-manager/commit/e9b9ecef4295a835ab073814f100498716b05a96
|
||||||
xdg.configFile."gtk-4.0/gtk.css".text = lib.mkForce config.gtk.gtk4.extraCss;
|
xdg.configFile."gtk-4.0/gtk.css".text = lib.mkForce config.gtk.gtk4.extraCss;
|
||||||
|
|
||||||
dconf.settings = {
|
|
||||||
"org/gnome/desktop/interface" = {
|
|
||||||
"clock-format" = "12h";
|
|
||||||
"color-scheme" = "prefer-dark";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# X11
|
|
||||||
xresources.extraConfig =
|
|
||||||
lib.mkIf (config.myFlake.home-manager.colorScheme == "tokyonight")
|
|
||||||
(builtins.readFile "${pkgs.vimPlugins.tokyonight-nvim}/extras/xresources/tokyonight_night.Xresources");
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue