cursor: Fix grab animation

This commit is contained in:
Geoffrey Frogeye 2025-06-17 10:31:22 +02:00
parent 417cf82889
commit 0154994baf

View file

@ -21,22 +21,47 @@ let
runHook preInstall runHook preInstall
mkdir -p $out/share/icons mkdir -p $out/share/icons
mv Menda-Cursor $out/share/icons/menda-cursor mv Menda-Cursor $out/share/icons/menda-cursor
# 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
''; '';
}; };
# Phinger is also not a bad cursor theme, more geometric, has dark/light theme, # Phinger is also not a bad cursor theme, more geometric, has dark/light theme, more cursors (resize ones).
# but overall same amount of cursor and not very green innit. # Could be nice to redo Menda with it as a base to get its benefits.
# That being said, it doesn't seem that cursor change immediately on apply,
# so my idea of dark cursor on light theme and vice-versa might not fly anyways.
in in
{ {
config = { config = {
home.pointerCursor = { stylix.cursor = {
name = "menda-cursor"; name = "menda-cursor";
package = menda; package = menda;
size = 32; size = 32;
gtk.enable = true;
}; };
}; };
} }