Compare commits

...

2 commits

Author SHA1 Message Date
Artemis Tosini ddade0edd0
Switch to okular for pdf 2024-08-22 04:46:47 +00:00
Artemis Tosini 42529fe2a3
Get QT theme somewhat working 2024-08-22 04:46:47 +00:00
5 changed files with 53 additions and 21 deletions

View file

@ -11,10 +11,10 @@
./fish.nix
./git.nix
./gpg.nix
./gtk.nix
./mpv.nix
./ssh
./terminals.nix
./theme.nix
./tmux.nix
./use-xdg.nix
];

View file

@ -1,14 +0,0 @@
{ ... }:
let
common-gtk = {
gtk-application-prefer-dark-theme = true;
};
in
{
home.sessionVariables.GTK_THEME = "Adwaita:dark";
gtk = {
enable = true;
gtk3.extraConfig = common-gtk;
gtk4.extraConfig = common-gtk;
};
}

51
home/theme.nix Normal file
View file

@ -0,0 +1,51 @@
{ pkgs, lib, ... }:
let
ini = pkgs.formats.ini { };
common-gtk = {
gtk-application-prefer-dark-theme = true;
};
qtct-config =
pkg: name:
ini.generate "${name}.conf" {
Appearance = {
custom_palette = true;
color_scheme_path = "${pkg}/share/${name}/colors/darker.conf";
style = "Breeze";
icon_theme = "breeze-dark";
standard_dialogs = "default";
};
};
in
{
home.sessionVariables.GTK_THEME = "Adwaita:dark";
gtk = {
enable = true;
gtk3.extraConfig = common-gtk;
gtk4.extraConfig = common-gtk;
};
dconf.settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
qt = {
enable = true;
platformTheme.name = "qtct";
};
home.packages = with pkgs; [
(lib.lowPrio libsForQt5.breeze-qt5.bin)
kdePackages.breeze
kdePackages.breeze-icons
qt6.qtwayland
];
xdg.configFile = {
"qt5ct/qt5ct.conf".source = qtct-config pkgs.libsForQt5.qt5ct "qt5ct";
"qt6ct/qt6ct.conf".source = qtct-config pkgs.kdePackages.qt6ct "qt6ct";
};
}

View file

@ -94,10 +94,10 @@
# GUI tools
dino
eog
evince
gimp
gnome-system-monitor
inkscape
kdePackages.okular
libreoffice-fresh
nheko

View file

@ -64,10 +64,5 @@
};
};
qt = {
enable = true;
platformTheme = "qt5ct";
};
users.users.artemis.extraGroups = [ "scanner" ];
}