Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lilleaila/nix-cursors
https://github.com/lilleaila/nix-cursors
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lilleaila/nix-cursors
- Owner: LilleAila
- Created: 2024-04-22T14:33:24.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-18T14:15:00.000Z (8 months ago)
- Last Synced: 2024-05-18T15:26:08.422Z (8 months ago)
- Language: Nix
- Size: 58.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Nix-cursors
[ful1e5](https://github.com/ful1e5)'s linux cursors, built from source and packaged for NixOS with home-manager. This is meant to be used with [nix-colors](https://github.com/Misterio77/nix-colors) or a similar package, but it can be used alone.
# Examples:
| ![Gruvbox cursor](./assets/gruvbox.png) | ![Catppuccin cursor](./assets/catppuccin.png) | ![OneDark cursor](./assets/onedark.png) | ![Kanagawa cursor](./assets/kanagawa.png) |
| --- | --- | --- | --- |
| Gruvbox | Catppuccin | OneDark | Kanagawa |## Usage
Add this repo to your flake inputs
```nix
# flake.nix
inputs = {
# ...
nix-cursors = {
url = "github:LilleAila/nix-cursors";
inputs.nixpkgs.follows = "nixpkgs";
};
# ...
}
```
Here is an example of how you can configure it with home-manager and nix-colors. The colors can be changed, or left as default. To see the available cursors, look in the `pkgs` directory, or run `nix flake show github:LilleAila/nix-cursors`.
```nix
home.pointerCursor = {
package = inputs.nix-cursors.packages.${pkgs.system}.bibata-original-cursor.override {
background_color = "#${config.colorScheme.palette.base00}";
outline_color = "#${config.colorScheme.palette.base06}";
accent_color = "#${config.colorScheme.palette.base00}";
};
name = "Bibata-Original-Custom";
size = 24;
gtk.enable = true;
};
```
The `bibata-original` and `bibata-modern` cursors also have an option called `replace_crosshair`. It will replace the crosshair cursor with the normal pointer cursor, so that it does not show up in screenshots taken from the top left.