feat: cursor refactor
This commit is contained in:
parent
30286dbedb
commit
8952984da2
2 changed files with 9 additions and 5 deletions
|
|
@ -12,10 +12,6 @@ env = QT_QPA_PLATFORM,wayland
|
|||
env = GDK_BACKEND,wayland,x11
|
||||
env = SDL_VIDEODRIVER,wayland
|
||||
|
||||
env = XCURSOR_SIZE,24
|
||||
env = HYPRCURSOR_SIZE,24
|
||||
env = HYPRCURSOR_THEME,Apple_Cursor
|
||||
|
||||
cursor {
|
||||
no_hardware_cursors = true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,14 @@ let
|
|||
}
|
||||
'';
|
||||
|
||||
cursor = config.home.pointerCursor;
|
||||
|
||||
cursorEnv = lib.optionalString (cursor != null) ''
|
||||
env = XCURSOR_SIZE,${toString cursor.size}
|
||||
env = HYPRCURSOR_SIZE,${toString cursor.size}
|
||||
env = HYPRCURSOR_THEME,${cursor.name}
|
||||
'';
|
||||
|
||||
nvidiaEnv = lib.optionalString (hostConfig.gpu == "nvidia") ''
|
||||
env = LIBVA_DRIVER_NAME,nvidia
|
||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||
|
|
@ -32,7 +40,7 @@ in
|
|||
systemd.enable = hostConfig.isNixOS;
|
||||
|
||||
extraConfig = ''
|
||||
${nvidiaEnv}
|
||||
${cursorEnv}${nvidiaEnv}
|
||||
source = $XDG_CONFIG_HOME/nix/config/hypr/hyprland.conf
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue