Streamline cursor theme

Some apps use different sources.
I setup xresources and ensure there is only one icon theme (includes
cursor).

This uses the single source of truth, thanks to nix / home-manager.

Except snap packages, those still don't work.
This commit is contained in:
Daniel Siepmann 2022-05-22 17:49:55 +02:00
parent 70d5002cbf
commit e782687068
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
3 changed files with 12 additions and 1 deletions

View file

@ -54,6 +54,9 @@
xdg = import ./home/xdg.nix {
inherit pkgs;
};
xresources = import ./home/xresources.nix {
inherit config;
};
qt = import ./home/qt.nix {
inherit pkgs;

View file

@ -19,7 +19,7 @@
tmpfiles.rules = [
"L ${config.home.homeDirectory}/.themes - - - - ${config.home.profileDirectory}/share/themes"
"L ${config.home.homeDirectory}/.icons - - - - ${config.home.profileDirectory}/share/icons"
"L ${config.home.homeDirectory}/.icons/default - - - - ${config.home.profileDirectory}/share/icons/${config.gtk.iconTheme.name}"
"L ${config.home.homeDirectory}/.local/share/applications - - - - ${config.home.profileDirectory}/share/applications"
];
}

8
home/xresources.nix Normal file
View file

@ -0,0 +1,8 @@
{ config }:
{
properties = {
"Xcursor.theme" = "${config.gtk.cursorTheme.name}";
"Xcursor.size" = 16;
};
}