home-cursor: add sway support (#6459)

This commit is contained in:
Bruno BELANYI
2025-02-21 22:16:56 +00:00
committed by GitHub
parent 148a6b5565
commit dde2fba628

View File

@@ -56,6 +56,11 @@ let
description = "The cursor size for hyprcursor.";
};
};
sway = {
enable = mkEnableOption
"sway config generation for {option}`home.pointerCursor`";
};
};
};
@@ -197,5 +202,18 @@ in {
if cfg.hyprcursor.size != null then cfg.hyprcursor.size else cfg.size;
};
})
(mkIf cfg.sway.enable {
wayland.windowManager.sway = {
config = {
seat = {
"*" = {
xcursor_theme =
"${cfg.name} ${toString config.gtk.cursorTheme.size}";
};
};
};
};
})
]);
}