diff --git a/modules/config/home-cursor.nix b/modules/config/home-cursor.nix index 42c259455..8c28d0fd1 100644 --- a/modules/config/home-cursor.nix +++ b/modules/config/home-cursor.nix @@ -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}"; + }; + }; + }; + }; + }) ]); }