From dde2fba628af2891e2e1ba8abb8be4e597edd49e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 21 Feb 2025 22:16:56 +0000 Subject: [PATCH] home-cursor: add sway support (#6459) --- modules/config/home-cursor.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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}"; + }; + }; + }; + }; + }) ]); }