feat(hypr): use hyprcursor for cursor theme

This commit is contained in:
matt1432 2024-07-23 16:04:18 -04:00
parent 3e1df66156
commit b307e7df13
3 changed files with 52 additions and 3 deletions
modules/desktop/desktop-environment/home

View file

@ -1,17 +1,32 @@
{config, ...}: let
{
config,
pkgs,
self,
...
}: let
inherit (config.vars) configDir;
cursorTheme = self.legacyPackages.${pkgs.system}.dracula.hyprcursor;
cursorThemeName = "Dracula-cursors";
hyprcursorThemeName = "Dracula-hyprcursor";
cursorSize = "24";
in {
imports = [
../../home/theme
../../home/hyprpaper.nix
];
home.file.".local/share/icons/${hyprcursorThemeName}".source = cursorTheme;
wayland.windowManager.hyprland = {
settings = {
envd = ["XCURSOR_SIZE, 24"];
envd = [
"XCURSOR_THEME, ${cursorThemeName}"
"XCURSOR_SIZE, ${cursorSize}"
];
exec-once = [
"hyprctl setcursor Dracula-cursors 24"
"hyprctl setcursor ${hyprcursorThemeName} ${cursorSize}"
"hyprpaper"
];