The McMojave cursor theme ported to hyprcusor
Find a file
2024-07-27 21:31:56 +00:00
LICENSE Initial commit 2024-07-27 20:48:33 +00:00
README.md Update README.md 2024-07-27 21:31:56 +00:00

McMojave-hyprcursor

The McMojave cursor theme, created by vinceliuice and inspired by MacOs.

Installation

General

Downlaod the latest release and the place the files into ~/.local/share/icons or ~/.icons. After that set the HYPRCURSOR_THEME variable to McMojave-Light or McMojave-Dark in your hyprland config

env = HYPRCURSOR_THEME,McMojave-Light

NixOs

Add mcmojave-hyprcursor to your flake inputs. A basic flake would look like this

{
  description = "Basic System Flake";
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    hyprland = {
      type = "git";
      url = "https://github.com/hyprwm/Hyprland";
      submodules = true;
    };

    # Add this line
    # vvvvvvv
    mcmojave-hyprcursor.url = "github:libadoxon/mcmojave-hyprcursor";
  };
  outputs = { self, nixpkgs, ... } @inputs: {
  nixosConfigurations = {
    exampleSystem = nixpkgs.lib.nixosSystem {
      specialArgs = { inherit inputs; };
      modules = [
        ./configuration.nix
      ];
    };
  };
}

After that install the wanted theme in your configuration.nix or home.nix

# configuration.nix
{ pkgs, inputs, ... }: {
  ...
  environment.systemPackages = [
      inputs.mcmojave-hyprcursor.packages.${pkgs.stdenv.hostPlatform.system}.mcmojave-hyprcursor-light
  ];
  ...
}
# home.nix
{ pkgs, inputs, ... }: {
  ...
  home.packages = [
      inputs.mcmojave-hyprcursor.packages.${pkgs.stdenv.hostPlatform.system}.mcmojave-hyprcursor-dark
  ];
  ...
}

Set the environment variable so hyprcursor knows to use the the newly added theme. You can do this in your NixOs configuration

# configuration.nix
{ ... }: {
  ...
  environment.variables.HYPRCURSOR_THEME = "McMojave-Light";
  ...
}
# home.nix
{ ... }: {
  ...
  home.sessionVariables.HYPRCURSOR_THEME = "McMojave-Dark";
  ...
}

or by appending env = HYPRCURSOR_THEME,rose-pine-hyprcursor to your hyprland config