split theme into its own module and add xdg configuration
This commit is contained in:
parent
7f692459a9
commit
4acb6e2408
3 changed files with 53 additions and 49 deletions
|
@ -81,8 +81,9 @@ in {
|
|||
./fonts.nix
|
||||
./i3.nix
|
||||
./polybar.nix
|
||||
./startx.nix # move to ly once 24.11 comes out :(
|
||||
./startx.nix
|
||||
./picom.nix
|
||||
./theme.nix
|
||||
];
|
||||
|
||||
config = let
|
||||
|
@ -113,45 +114,16 @@ in {
|
|||
picom.enable = true;
|
||||
};
|
||||
|
||||
gtk = {
|
||||
xdg = {
|
||||
enable = true;
|
||||
|
||||
iconTheme = {
|
||||
name = "Papirus-Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"application/pdf" = with pkgs; ["qpdfview"];
|
||||
"text/uri-list" = with pkgs; ["firefox"];
|
||||
"x-scheme-handler/file" = with pkgs; ["kitty"];
|
||||
};
|
||||
};
|
||||
theme = {
|
||||
package = pkgs.materia-theme;
|
||||
name = "Materia-dark";
|
||||
};
|
||||
|
||||
gtk2.extraConfig = ''
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
|
||||
gtk-menu-images=1
|
||||
gtk-button-images=1
|
||||
'';
|
||||
|
||||
gtk3.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
gtk4.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
};
|
||||
|
||||
#qt = { mentioning qt makes qt applications not work, I should probably check how to fix this
|
||||
# enable = true;
|
||||
# style.name = "bb10dark";
|
||||
#};
|
||||
|
||||
home.sessionVariables = {
|
||||
# Use gtk in jvm apps
|
||||
_JAVA_OPTIONS = concatStringsSep " " [
|
||||
"-Dawt.useSystemAAFontSettings=on"
|
||||
"-Dswing.aatext=true"
|
||||
"-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
|
||||
"-Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue