mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:13:55 -05:00
Aly Raffauf
da2cbecbe7
* switch default gtk theme and colors to adw-gtk3 * vscodium: move to adwaita * home/theme: switch qt theme to Adwaita-dark * wlogout: migrate to adwaita and improve look and feel * nixpkgs: remove adwaita overrides * plymouth: remove catppuccin theme * home/chromium: remove catppuccin theme * emacs: remove catppuccin * home/neovim: catppuccin -> ayu * nixos/base: remove catppuccin console colors * home/theme: switch to Bibata cursors * nixos/lightdm: conform to default home theme * home: remove theme overrides * qlogout: fix regression with button:focus keeping entries highlighted when unhovered * format with alejandra * home/waybar: match colors to adwaita * home/fuzzel: match selection colors with theme.colors * mauville: remove overrided vscode theme * aly: use firefox gnome theme * rustboro: decrease cursor size override * nixos/options: remove catppuccin references * home/theme: fixed regression in theme.gtk.hideTitleBar
131 lines
4.2 KiB
Nix
131 lines
4.2 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.ar.home.theme.enable {
|
|
home = {
|
|
packages = with pkgs; [gnome.adwaita-icon-theme];
|
|
|
|
pointerCursor = {
|
|
gtk.enable = true;
|
|
name = config.ar.home.theme.cursorTheme.name;
|
|
package = config.ar.home.theme.cursorTheme.package;
|
|
size = config.ar.home.theme.cursorTheme.size;
|
|
|
|
x11 = {
|
|
enable = true;
|
|
defaultCursor = config.ar.home.theme.cursorTheme.name;
|
|
};
|
|
};
|
|
};
|
|
|
|
qt = {
|
|
enable = true;
|
|
platformTheme.name = "qtct";
|
|
style = {
|
|
package = config.ar.home.theme.qt.package;
|
|
name = config.ar.home.theme.qt.name;
|
|
};
|
|
};
|
|
|
|
fonts.fontconfig = {
|
|
enable = true;
|
|
defaultFonts = {
|
|
monospace = [config.ar.home.theme.terminalFont.name];
|
|
serif = ["NotoSerif Nerd Font"];
|
|
sansSerif = [config.ar.home.theme.font.name];
|
|
};
|
|
};
|
|
|
|
gtk = {
|
|
enable = true;
|
|
|
|
theme = {
|
|
package = config.ar.home.theme.gtk.package;
|
|
name = config.ar.home.theme.gtk.name;
|
|
};
|
|
|
|
iconTheme = {
|
|
package = config.ar.home.theme.iconTheme.package;
|
|
name = config.ar.home.theme.iconTheme.name;
|
|
};
|
|
|
|
font = {
|
|
name = "${config.ar.home.theme.font.name} Regular";
|
|
package = config.ar.home.theme.font.package;
|
|
size = config.ar.home.theme.font.size;
|
|
};
|
|
|
|
gtk3.extraConfig = lib.attrsets.optionalAttrs (config.ar.home.theme.colors.preferDark) {gtk-application-prefer-dark-theme = 1;};
|
|
|
|
gtk4.extraConfig = lib.attrsets.optionalAttrs (config.ar.home.theme.colors.preferDark) {gtk-application-prefer-dark-theme = 1;};
|
|
|
|
gtk3.extraCss = ''
|
|
@define-color accent_bg_color ${config.ar.home.theme.colors.primary};
|
|
@define-color accent_color @accent_bg_color;
|
|
|
|
${
|
|
if config.ar.home.theme.gtk.hideTitleBar
|
|
then ''
|
|
/* No (default) title bar on wayland */
|
|
headerbar.default-decoration {
|
|
/* You may need to tweak these values depending on your GTK theme */
|
|
margin-bottom: 50px;
|
|
margin-top: -100px;
|
|
|
|
background: transparent;
|
|
padding: 0;
|
|
border: 0;
|
|
min-height: 0;
|
|
font-size: 0;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* rm -rf window shadows */
|
|
window.csd, /* gtk4? */
|
|
window.csd decoration { /* gtk3 */
|
|
box-shadow: none;
|
|
}
|
|
''
|
|
else "/* */"
|
|
}
|
|
'';
|
|
|
|
gtk4.extraCss = config.gtk.gtk3.extraCss;
|
|
};
|
|
|
|
dconf.settings = {
|
|
"org/cinnamon/desktop/background".picture-uri = "file://${config.ar.home.theme.wallpaper}";
|
|
|
|
"org/cinnamon/desktop/interface" = {
|
|
cursor-size = config.ar.home.theme.cursorTheme.size;
|
|
cursor-theme = config.ar.home.theme.cursorTheme.name;
|
|
font-name = "${config.ar.home.theme.font.name} Regular ${toString config.ar.home.theme.font.size}";
|
|
gtk-theme = config.ar.home.theme.gtk.name;
|
|
icon-theme = config.ar.home.theme.iconTheme.name;
|
|
};
|
|
|
|
"org/cinnamon/theme".name = config.ar.home.theme.gtk.name;
|
|
"org/cinnamon/desktop/wm/preferences".titlebar-font = "${config.ar.home.theme.font.name} ${toString config.ar.home.theme.font.size}";
|
|
|
|
"org/gnome/desktop/background".picture-uri = "file://${config.ar.home.theme.wallpaper}";
|
|
"org/gnome/desktop/background".picture-uri-dark = "file://${config.ar.home.theme.wallpaper}";
|
|
"org/gnome/desktop/interface" = {
|
|
color-scheme =
|
|
if config.ar.home.theme.colors.preferDark
|
|
then "prefer-dark"
|
|
else "prefer-light";
|
|
cursor-theme = config.ar.home.theme.cursorTheme.name;
|
|
cursor-size = config.ar.home.theme.cursorTheme.size;
|
|
gtk-theme = config.ar.home.theme.gtk.name;
|
|
icon-theme = config.ar.home.theme.iconTheme.name;
|
|
monospace-font-name = "${config.ar.home.theme.terminalFont.name} Regular ${toString config.ar.home.theme.terminalFont.size}";
|
|
};
|
|
|
|
"org/gnome/desktop/wm/preferences".titlebar-font = "${config.ar.home.theme.font.name} ${toString config.ar.home.theme.font.size}";
|
|
};
|
|
};
|
|
}
|