Contemplating life choices

This commit is contained in:
Geoffrey Frogeye 2025-06-17 18:17:41 +02:00
parent 0154994baf
commit d73fc4cb57

View file

@ -1,66 +1,42 @@
{ {
pkgs, pkgs,
lib,
config,
... ...
}: }:
let let
# Manjaro cursor theme. fringer-cursors = pkgs.stdenvNoCC.mkDerivation rec {
# Also known as Maia but exact same one without git history and wrong credits. pname = "fringer-cursors";
# Not a big fan of Manjaro but that cursor theme slaps. version = "1.0";
menda = pkgs.stdenvNoCC.mkDerivation rec {
pname = "menda-cursor";
version = "2014-11-25";
src = pkgs.fetchFromGitHub { src = pkgs.fetchurl {
owner = "anexation"; url = "https://github.com/GeoffreyFrogeye/fringer-cursors/releases/download/v${version}/fringer-cursors-variants.tar.bz2";
repo = pname; sha256 = "sha256-P4PhGTHto+DMn1VZ5ZvMWHYXWjHfw90GKBNDn908WgU=";
rev = "e3503252cbac2772e800929d12341c6a3284cd15";
hash = "sha256-CR/nfydRjMADdJ4iBP00O24XENC2jbsbwNk0w63G3h4=";
}; };
sourceRoot = ".";
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out/share/icons mkdir -p $out/share/icons
mv Menda-Cursor $out/share/icons/menda-cursor cp -r ./fringer-cursors* $out/share/icons
# Add aliases for cursor missing from phinger
cd $out/share/icons/menda-cursor/cursors
ln -s default arrow
ln -s size_bdiag bd_double_arrow
ln -s crosshair cross_reverse
ln -s crosshair diamond_cross
ln -s help dnd-help
ln -s down-arrow down
ln -s size_hor ew-resize
ln -s size_fdiag fd_double_arrow
ln -s dnd-move grab
ln -s dnd-move grabbing
ln -s left-arrow left
ln -s size_bdiag ne-resize
ln -s size_bdiag nesw-resize
ln -s size_ver ns-resize
ln -s size_fdiag nw-resize
ln -s pencil pen
ln -s color-picker men
ln -s right-arrow right
ln -s size_fdiag se-resize
ln -s size_bdiag sw-resize
ln -s crosshair target
ln -s crosshair tcross
ln -s default top_left_arrow
ln -s up-arrow up
# Missing: kill, middle_finger, rock_and_roll, skull, wayland-cursor, x-cursor (not missing much)
runHook postInstall runHook postInstall
''; '';
meta = with lib; {
description = "Modernized Menda cursor theme";
homepage = "https://github.com/GeoffreyFrogeye/fringer-cursors";
platforms = platforms.unix;
license = licenses.cc-by-sa-40;
maintainers = with maintainers; [ geoffreyfrogeye ];
};
}; };
# Phinger is also not a bad cursor theme, more geometric, has dark/light theme, more cursors (resize ones).
# Could be nice to redo Menda with it as a base to get its benefits.
in in
{ {
config = { config = {
stylix.cursor = { stylix.cursor = {
name = "menda-cursor"; name = "fringer-cursors-${if config.stylix.polarity == "dark" then "light" else "dark"}";
package = menda; package = fringer-cursors;
size = 32; size = 32;
}; };
}; };