From 67002a94dd15c78ec82ef914f24e6a21822ef244 Mon Sep 17 00:00:00 2001 From: blake Date: Thu, 6 Nov 2025 23:11:37 -0600 Subject: [PATCH] finally figured out the cursors, needed to use the setcursor commadn in hyprctl --- users/blake/dots/desktop/cursor/default.nix | 62 ++++++++++----------- users/blake/dots/desktop/hypr/default.nix | 4 ++ 2 files changed, 35 insertions(+), 31 deletions(-) diff --git a/users/blake/dots/desktop/cursor/default.nix b/users/blake/dots/desktop/cursor/default.nix index cccd6d2..c89ace3 100644 --- a/users/blake/dots/desktop/cursor/default.nix +++ b/users/blake/dots/desktop/cursor/default.nix @@ -19,7 +19,7 @@ in { cursor_hypr = lib.mkOption { type = lib.types.str; #default = "Posy_Cursor_Black"; - default = "posy_dark"; + default = "posy_dark_hypr"; description = "cursor to use"; }; size = lib.mkOption { @@ -31,37 +31,37 @@ in { }; config = lib.mkIf cfg.enable { - # shelving for now lmao - xdg.dataFile."icons/posy_dark" = { - #config.lib.file.mkOutOfStoreSymlink - source = config.lib.file.mkOutOfStoreSymlink "${home_dir}/.nix/users/blake/assets/icons/cursors/posy_dark"; - recursive = true; - }; - xdg.dataFile."icons/posy_dark_hypr" = { - source = config.lib.file.mkOutOfStoreSymlink "${home_dir}/.nix/users/blake/assets/icons/cursors/posy_dark_hypr"; - recursive = true; - }; - - home.sessionVariables = { - XCURSOR_SIZE = cfg.size; - XCURSOR_THEME = cfg.cursor; - HYPRCURSOR_SIZE = cfg.size; - HYPRCURSOR_THEME = cfg.cursor_hypr; - }; - - # home.pointerCursor = { - # dotIcons.enable = false; - # enable = true; - # gtk.enable = true; - # x11.enable = true; - # package = pkgs.posy-cursors; - # name = cfg.cursor; - # size = 64; - # hyprcursor = { - # enable = true; - # size = 64; - # }; + # shelving for now lmao, the home grown way + # xdg.dataFile."icons/${cfg.cursor}" = { + # #config.lib.file.mkOutOfStoreSymlink + # source = config.lib.file.mkOutOfStoreSymlink "${home_dir}/.nix/users/blake/assets/icons/cursors/${cfg.cursor}"; + # recursive = true; # }; + # xdg.dataFile."icons/${cfg.cursor_hypr}" = { + # source = config.lib.file.mkOutOfStoreSymlink "${home_dir}/.nix/users/blake/assets/icons/cursors/${cfg.cursor_hypr}"; + # recursive = true; + # }; + # + # home.sessionVariables = { + # HYPRCURSOR_SIZE = cfg.size; + # HYPRCURSOR_THEME = cfg.cursor_hypr; + # XCURSOR_SIZE = cfg.size; + # XCURSOR_THEME = cfg.cursor; + # }; + + home.pointerCursor = { + dotIcons.enable = false; + enable = true; + gtk.enable = true; + x11.enable = true; + package = pkgs.posy-cursors; + name = "Posy_Cursor_Black"; + size = 64; + hyprcursor = { + enable = true; + size = 64; + }; + }; }; } diff --git a/users/blake/dots/desktop/hypr/default.nix b/users/blake/dots/desktop/hypr/default.nix index e200c61..7dd8b15 100644 --- a/users/blake/dots/desktop/hypr/default.nix +++ b/users/blake/dots/desktop/hypr/default.nix @@ -38,6 +38,10 @@ in { "XDG_SESSION_DESKTOP,Hyprland" ]; + exec-once = [ + "hyprctl setcursor ${config.home.pointerCursor.name} ${toString config.home.pointerCursor.size}" + ]; + # --- input --- input = { kb_layout = "us";