nixos-config/user/sway/theme.nix

126 lines
2.8 KiB
Nix
Raw Permalink Normal View History

{
config,
pkgs,
lib,
inputs,
...
}:
let
2024-06-05 01:18:48 -03:00
inherit (config.my) theme font desktop;
inherit (theme)
color
gtk_theme
icon_theme
cursor_theme
;
in
lib.mkIf (desktop == "sway") {
2022-10-26 17:00:14 -03:00
home.pointerCursor = {
2022-10-26 17:44:38 -03:00
name = cursor_theme;
2022-12-12 10:21:40 -03:00
size = 24;
package = pkgs.bibata-cursors;
2022-10-26 17:00:14 -03:00
gtk.enable = true;
};
gtk =
{
enable = true;
font = {
name = font.interface;
size = font.size.small;
};
theme = {
name = gtk_theme;
package = pkgs.orchis_theme_compact;
};
iconTheme = {
name = icon_theme;
package = pkgs.papirus_red;
2023-02-25 16:43:58 -03:00
};
}
// (
let
shared.extraConfig = {
gtk-decoration-layout = "menu:";
};
in
{
gtk4 = shared;
gtk3 = shared;
}
);
2024-07-06 18:41:32 -03:00
2024-08-09 01:22:18 -03:00
xdg.configFile."gtk-3.0/settings.ini".force = true;
xdg.configFile."gtk-4.0/settings.ini".force = true;
2024-03-17 00:07:26 -03:00
qt = {
enable = true;
2024-07-06 18:41:32 -03:00
platformTheme.name = "gtk3";
style.name = "qt5ct";
2024-03-17 00:07:26 -03:00
};
2022-10-26 17:44:38 -03:00
2023-01-23 23:27:23 -03:00
dconf.settings = {
"org/gnome/desktop/interface" = {
gtk-theme = gtk_theme;
icon-theme = icon_theme;
cursor-theme = cursor_theme;
color-scheme = "prefer-${color.type}";
2023-01-23 23:27:23 -03:00
};
2023-02-25 16:43:58 -03:00
"org/gnome/desktop/wm/preferences" = {
button-layout = "menu:";
};
2023-01-23 23:27:23 -03:00
};
2022-10-26 17:44:38 -03:00
# fonts.fontconfig.enable = true;
xdg.configFile = {
"qt5ct/qt5ct.conf".text = ''
[Appearance]
# color_scheme_path=/nix/store/f07mk0vrm47jxw3y5v99hxncy0w4vcyq-qt5ct-1.5/share/qt5ct/colors/darker.conf
custom_palette=false
2022-11-07 11:24:40 -03:00
icon_theme=${icon_theme}
2022-10-26 17:44:38 -03:00
standard_dialogs=default
style=kvantum-dark
# [Fonts]
# fixed=@Variant(\0\0\0@\0\0\0\x1c\0H\0\x61\0\x63\0k\0 \0N\0\x65\0r\0\x64\0 \0\x46\0o\0n\0t@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
# general=@Variant(\0\0\0@\0\0\0\x1e\0L\0i\0\x62\0\x65\0r\0\x61\0t\0i\0o\0n\0 \0S\0\x61\0n\0s@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
'';
2024-07-03 12:59:17 -03:00
"kdedefaults/kdeglobals".text = ''
[General]
ColorScheme=BreezeDark
[Icons]
Theme=${icon_theme}
'';
2022-10-26 17:44:38 -03:00
};
services.xsettingsd = {
enable = true;
settings = {
2022-11-07 11:24:40 -03:00
"Gtk/FontName" = "${font.interface} ${toString font.size.small}";
"Net/ThemeName" = "${gtk_theme}";
"Net/IconThemeName" = "${icon_theme}";
"Gtk/CursorThemeName" = "${cursor_theme}";
2022-10-26 17:44:38 -03:00
"Gtk/CursorThemeSize" = 24;
2022-11-07 11:24:40 -03:00
"Net/SoundThemeName" = "freedesktop";
2022-10-26 17:44:38 -03:00
};
};
2022-10-26 17:00:14 -03:00
home.packages = with pkgs; [
libsForQt5.qt5ct
libsForQt5.qtstyleplugin-kvantum
2024-03-17 00:07:26 -03:00
qt6Packages.qt6ct
qt6Packages.qtstyleplugin-kvantum
2022-10-26 17:00:14 -03:00
2022-12-12 10:21:40 -03:00
pkgs.bibata-cursors
2022-10-26 17:00:14 -03:00
pkgs.orchis_theme_compact
pkgs.papirus_red
## fonts
liberation_ttf
hack-font
font-awesome_5
fira-code
nerdfonts_fira_hack
material-wifi-icons
];
}