1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-06 16:57:03 +00:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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}";
};
};
};
};
})
]);
}