From 6357f999e7dceb2aa84b72bc6f5ec74a76b755bd Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Mon, 23 Sep 2024 15:19:39 +0200 Subject: [PATCH] fix(hypr): Cursor theme now defined with `home.pointerCursor` --- de/hypr/default.nix | 10 ++++++++-- de/hypr/hyprland.conf.d/environment.conf | 7 ------- de/hypr/hyprland.conf.d/startup.conf | 1 - 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/de/hypr/default.nix b/de/hypr/default.nix index e5b02bd..19a16c3 100644 --- a/de/hypr/default.nix +++ b/de/hypr/default.nix @@ -46,10 +46,16 @@ pkgs.firefox pkgs.kitty pkgs.yazi - # Theme - pkgs.bibata-cursors ]; + home.pointerCursor = { + gtk.enable = true; + # x11.enable = true; + package = pkgs.bibata-cursors; + name = "Bibata-Modern-Classic"; + size = 24; + }; + wayland.windowManager.hyprland = { enable = true; extraConfig = builtins.readFile ./hyprland.conf; diff --git a/de/hypr/hyprland.conf.d/environment.conf b/de/hypr/hyprland.conf.d/environment.conf index 310c88c..ed1022a 100644 --- a/de/hypr/hyprland.conf.d/environment.conf +++ b/de/hypr/hyprland.conf.d/environment.conf @@ -1,13 +1,6 @@ # Hyprland GPU backend # env = WLR_DRM_DEVICES,/dev/dri/card1 -# Hyprcursor -env = HYPRCURSOR_THEME,Bibata-Modern -env = HYPRCURSOR_SIZE,24 -# X cursor -env = XCURSOR_THEME,Bibata-Modern -env = XCURSOR_SIZE,24 - # Backend env = GDK_BACKEND, wayland,x11 env = SDL_VIDEODRIVER, wayland diff --git a/de/hypr/hyprland.conf.d/startup.conf b/de/hypr/hyprland.conf.d/startup.conf index 7fd4d95..ccd4551 100644 --- a/de/hypr/hyprland.conf.d/startup.conf +++ b/de/hypr/hyprland.conf.d/startup.conf @@ -6,5 +6,4 @@ exec-once = wallpaperctl daemon exec-once = swayosd-server exec-once = udiskie exec-once = eww-bard -exec-once = hyprctl setcursor Bibata-Modern-Classic 24 exec-once = dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP