Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Libadoxon committed Jul 27, 2024
1 parent 853712f commit 8e2507d
Show file tree
Hide file tree
Showing 147 changed files with 10,752 additions and 8 deletions.
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# McMojave-hyprcursor
The [McMojave cursor theme](https://github.com/vinceliuice/McMojave-cursors), created by [vinceliuice](https://github.com/vinceliuice) and inspired by MacOs.
The [McMojave cursor theme](https://github.com/vinceliuice/McMojave-cursors), created by [vinceliuice](https://github.com/vinceliuice) and ported to `hyprcursor`.

## Installation
#### General
Downlaod the latest [release](ttps://github.com/Libadoxon/mcmojave-hyprcursor/releases) 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
Downlaod the latest [release](ttps://github.com/Libadoxon/mcmojave-hyprcursor/releases) and the place the files into `~/.local/share/icons` or `~/.icons`. After that set the `HYPRCURSOR_THEME` variable to `McMojave` or `McMojave` in your `hyprland` config
```hyprlang
env = HYPRCURSOR_THEME,McMojave-Light
env = HYPRCURSOR_THEME,McMojave
```

#### NixOs
Expand Down Expand Up @@ -42,7 +42,7 @@ After that install the wanted theme in your `configuration.nix` or `home.nix`
{ pkgs, inputs, ... }: {
...
environment.systemPackages = [
inputs.mcmojave-hyprcursor.packages.${pkgs.stdenv.hostPlatform.system}.mcmojave-hyprcursor-light
inputs.mcmojave-hyprcursor.packages.${pkgs.stdenv.hostPlatform.system}.default
];
...
}
Expand All @@ -52,7 +52,7 @@ After that install the wanted theme in your `configuration.nix` or `home.nix`
{ pkgs, inputs, ... }: {
...
home.packages = [
inputs.mcmojave-hyprcursor.packages.${pkgs.stdenv.hostPlatform.system}.mcmojave-hyprcursor-dark
inputs.mcmojave-hyprcursor.packages.${pkgs.stdenv.hostPlatform.system}.default
];
...
}
Expand All @@ -62,16 +62,19 @@ Set the environment variable so `hyprcursor` knows to use the the newly added th
# configuration.nix
{ ... }: {
...
environment.variables.HYPRCURSOR_THEME = "McMojave-Light";
environment.variables.HYPRCURSOR_THEME = "McMojave";
...
}
```
```
# home.nix
{ ... }: {
...
home.sessionVariables.HYPRCURSOR_THEME = "McMojave-Dark";
home.sessionVariables.HYPRCURSOR_THEME = "McMojave";
...
}
```
or by appending `env = HYPRCURSOR_THEME,rose-pine-hyprcursor` to your `hyprland` config
or by appending `env = HYPRCURSOR_THEME,McMojave` to your `hyprland` config

## Preview
![McMojave](preview.png)
35 changes: 35 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
description = "The McMojave cursor theme ported to hyprcusor";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";

hyprlang = {
url = "github:hyprwm/hyprlang";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs =
{
nixpkgs,
utils,
hyprlang,
}:
utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
in

{
packages = {
mcmojave-hyprcursor-light = pkgs.callPackage ./nix/light.nix { inherit pkgs; };
mcmojave-hyprcursor-dark = pkgs.callPackage ./nix/dark.nix { inherit pkgs; };
};

formatter = nixpkgs.${system}.nixpkgs-fmt;
}
);
}
22 changes: 22 additions & 0 deletions hyprcusors/alias/alias.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions hyprcusors/alias/meta.hl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resize_algorithm = none

hotspot_x = 0.17
hotspot_y = 0.17

define_override = link
define_size = 0,alias.svg
12 changes: 12 additions & 0 deletions hyprcusors/all-scroll/all-scroll.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions hyprcusors/all-scroll/meta.hl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resize_algorithm = none

hotspot_x = 0.67
hotspot_y = 0.67
define_size = 0,all-scroll.svg
14 changes: 14 additions & 0 deletions hyprcusors/bottom_left_corner/bottom_left_corner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions hyprcusors/bottom_left_corner/meta.hl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
resize_algorithm = none

hotspot_x = 0.17
hotspot_y = 1.08

define_override = ll_angle
define_override = sw-resize
define_size = 0,bottom_left_corner.svg
16 changes: 16 additions & 0 deletions hyprcusors/bottom_right_corner/bottom_right_corner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions hyprcusors/bottom_right_corner/meta.hl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
resize_algorithm = none

hotspot_x = 1.08
hotspot_y = 1.08

define_override = lr_angle
define_override = se-resize
define_size = 0,bottom_right_corner.svg
18 changes: 18 additions & 0 deletions hyprcusors/bottom_side/bottom_side.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions hyprcusors/bottom_side/meta.hl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resize_algorithm = none

hotspot_x = 0.67
hotspot_y = 1.17
define_size = 0,bottom_side.svg
16 changes: 16 additions & 0 deletions hyprcusors/cell/cell.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions hyprcusors/cell/meta.hl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resize_algorithm = none

hotspot_x = 0.67
hotspot_y = 0.67

define_override = plus
define_size = 0,cell.svg
12 changes: 12 additions & 0 deletions hyprcusors/center_ptr/center_ptr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions hyprcusors/center_ptr/meta.hl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resize_algorithm = none

hotspot_x = 0.83
hotspot_y = 0.17
define_size = 0,center_ptr.svg
Loading

0 comments on commit 8e2507d

Please sign in to comment.