mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-18 14:28:15 +00:00
home-cursor: use home.sessionSearchVariables for XCURSOR_PATH
This commit is contained in:
parent
daab32302b
commit
5094e32cce
1 changed files with 7 additions and 6 deletions
|
@ -153,16 +153,17 @@ in {
|
||||||
|
|
||||||
home.packages = [ cfg.package defaultIndexThemePackage ];
|
home.packages = [ cfg.package defaultIndexThemePackage ];
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
XCURSOR_SIZE = mkDefault cfg.size;
|
||||||
|
XCURSOR_THEME = mkDefault cfg.name;
|
||||||
|
};
|
||||||
|
|
||||||
# Set directory to look for cursors in, needed for some applications
|
# Set directory to look for cursors in, needed for some applications
|
||||||
# that are unable to find cursors otherwise. See:
|
# that are unable to find cursors otherwise. See:
|
||||||
# https://github.com/nix-community/home-manager/issues/2812
|
# https://github.com/nix-community/home-manager/issues/2812
|
||||||
# https://wiki.archlinux.org/title/Cursor_themes#Environment_variable
|
# https://wiki.archlinux.org/title/Cursor_themes#Environment_variable
|
||||||
home.sessionVariables = {
|
home.sessionSearchVariables.XCURSOR_PATH =
|
||||||
XCURSOR_PATH = mkDefault ("$XCURSOR_PATH\${XCURSOR_PATH:+:}"
|
[ "${config.home.profileDirectory}/share/icons" ];
|
||||||
+ "${config.home.profileDirectory}/share/icons");
|
|
||||||
XCURSOR_SIZE = mkDefault cfg.size;
|
|
||||||
XCURSOR_THEME = mkDefault cfg.name;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Add symlink of cursor icon directory to $HOME/.icons, needed for
|
# Add symlink of cursor icon directory to $HOME/.icons, needed for
|
||||||
# backwards compatibility with some applications. See:
|
# backwards compatibility with some applications. See:
|
||||||
|
|
Loading…
Add table
Reference in a new issue