From b150591c0b651ed32d3fea3d008a9db408fcaad7 Mon Sep 17 00:00:00 2001 From: Alex Bates Date: Fri, 7 Aug 2026 23:02:50 +0100 Subject: [PATCH] set Adwaita cursor theme for niri (fixes cursor never changing shape) --- modules/home/niri/config.kdl | 5 +++++ modules/home/niri/default.nix | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/modules/home/niri/config.kdl b/modules/home/niri/config.kdl index 314e205..b7e8b2c 100644 --- a/modules/home/niri/config.kdl +++ b/modules/home/niri/config.kdl @@ -3,6 +3,11 @@ // Check the wiki for a full description of the configuration: // https://yalter.github.io/niri/Configuration:-Introduction +cursor { + xcursor-theme "Adwaita" + xcursor-size 24 +} + environment { QT_QPA_PLATFORM "wayland" NIXOS_OZONE_WL "1" diff --git a/modules/home/niri/default.nix b/modules/home/niri/default.nix index 6f266a2..c8b28cf 100644 --- a/modules/home/niri/default.nix +++ b/modules/home/niri/default.nix @@ -16,6 +16,15 @@ in ]; config = lib.mkIf (!config.isMacOS) { + home.pointerCursor = { + enable = true; + package = pkgs.adwaita-icon-theme; + name = "Adwaita"; + size = 24; + gtk.enable = true; + x11.enable = true; + }; + xdg.configFile."niri/config.kdl".source = lib.mkDefault ./config.kdl; xdg.portal.extraPortals = with pkgs; [ xdg-desktop-portal-gnome -- 2.51.2