From 50d1153f780cf12a52328d6e09e2136c709b0ded Mon Sep 17 00:00:00 2001 From: Zynh Ludwig <Zynh0722@gmail.com> Date: Tue, 25 Mar 2025 13:00:01 -0700 Subject: [PATCH] theme: unify cursor theme --- flake.lock | 59 ++++++++++++++++++++++++++++++++++++++++++ flake.nix | 1 + home/modules/theme.nix | 2 +- modules/hyprland.nix | 5 ++++ 4 files changed, 66 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index cb1d64e..79b1fd7 100644 --- a/flake.lock +++ b/flake.lock @@ -1336,6 +1336,7 @@ "nixos-apple-silicon": "nixos-apple-silicon", "nixpkgs": "nixpkgs_5", "repo-clone": "repo-clone", + "rose-pine-hyprcursor": "rose-pine-hyprcursor", "rose-pine-swaync": "rose-pine-swaync", "sops-nix": "sops-nix", "split-monitor-workspaces": "split-monitor-workspaces", @@ -1344,6 +1345,31 @@ "zdwm": "zdwm" } }, + "rose-pine-hyprcursor": { + "inputs": { + "hyprlang": [ + "hyprland", + "hyprlang" + ], + "nixpkgs": [ + "nixpkgs" + ], + "utils": "utils_2" + }, + "locked": { + "lastModified": 1740132177, + "narHash": "sha256-gNc20APKMefFdH5RONBuHhOps14aiMdgIT0I6RaSN64=", + "owner": "ndom91", + "repo": "rose-pine-hyprcursor", + "rev": "568067f35a85932192bd43ddf64fc05eff850f9f", + "type": "github" + }, + "original": { + "owner": "ndom91", + "repo": "rose-pine-hyprcursor", + "type": "github" + } + }, "rose-pine-swaync": { "flake": false, "locked": { @@ -1509,6 +1535,21 @@ "type": "github" } }, + "systems_6": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "treefmt-nix": { "inputs": { "nixpkgs": [ @@ -1570,6 +1611,24 @@ "type": "github" } }, + "utils_2": { + "inputs": { + "systems": "systems_6" + }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "xdph": { "inputs": { "hyprland-protocols": [ diff --git a/flake.nix b/flake.nix index 82ec9ef..53a4238 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,7 @@ fish_theme = { url = "git+https://git.zynh.me/Zynh0722/omf-theme"; flake = false; }; backgrounds = { url = "git+https://git.zynh.me/Zynh0722/backgrounds"; inputs.nixpkgs.follows = "nixpkgs"; }; rose-pine-swaync = { url = "github:rose-pine/swaync"; flake = false; }; + rose-pine-hyprcursor = { url = "github:ndom91/rose-pine-hyprcursor"; inputs.nixpkgs.follows = "nixpkgs"; inputs.hyprlang.follows = "hyprland/hyprlang"; }; # Owie Sharp neovim-overlay = { url = "github:nix-community/neovim-nightly-overlay"; inputs.nixpkgs.follows = "nixpkgs"; }; diff --git a/home/modules/theme.nix b/home/modules/theme.nix index 2206509..1499473 100644 --- a/home/modules/theme.nix +++ b/home/modules/theme.nix @@ -45,7 +45,7 @@ in gtk.enable = true; x11.enable = true; name = name; - size = 16; + size = 24; package = pkgs.runCommand "moveUp" { } '' mkdir -p $out/share/icons diff --git a/modules/hyprland.nix b/modules/hyprland.nix index ae3f189..b7fd787 100644 --- a/modules/hyprland.nix +++ b/modules/hyprland.nix @@ -68,6 +68,10 @@ in SDL_VIDEODRIVEWR = "wayland,x11"; _JAVA_AWT_WM_NONREPARENTING = 1; }; + + environment.systemPackages = [ + inputs.rose-pine-hyprcursor.packages.${pkgs.system}.default + ]; } # hyprland configuration @@ -82,6 +86,7 @@ in env = [ "XCURSOR_SIZE,24" "HYPRCURSOR_SIZE,24" + "HYPRCURSOR_THEME,rose-pine-hyprcursor" "MOZ_ENABLE_WAYLAND,1" ];