Name: sl-cursor-shake Version: 1.0.0 Release: 100.2.2%{?dist} Summary: Shake-to-find cursor overlay for Niri License: Apache-2.0 URL: https://slsrepo.com Source0: sl-cursor-shake.c BuildRequires: zig BuildRequires: pkgconf-pkg-config BuildRequires: wayland-devel BuildRequires: wayland-protocols-devel >= 1.49 BuildRequires: wlr-protocols-devel BuildRequires: libXcursor-devel Requires: niri %description Shake-to-find cursor overlay for Niri. The program tracks the compositor cursor using ext-image-copy-capture, reconstructs standard theme cursors at high resolution through libXcursor, and displays an enlarged cursor when rapid back-and-forth pointer movement is detected. %prep rm -rf %{name}-%{version} mkdir -p %{name}-%{version} cp -p %{SOURCE0} %{name}-%{version}/sl-cursor-shake.c %build cd %{name}-%{version} mkdir -p generated protocol() { xml="$1" stem="$2" wayland-scanner client-header "$xml" "generated/${stem}-client-protocol.h" wayland-scanner private-code "$xml" "generated/${stem}-protocol.c" } protocol \ /usr/share/wayland-protocols/staging/ext-foreign-toplevel-list/ext-foreign-toplevel-list-v1.xml \ ext-foreign-toplevel-list-v1 protocol \ /usr/share/wayland-protocols/staging/ext-image-capture-source/ext-image-capture-source-v1.xml \ ext-image-capture-source-v1 protocol \ /usr/share/wayland-protocols/staging/ext-image-copy-capture/ext-image-copy-capture-v1.xml \ ext-image-copy-capture-v1 protocol \ /usr/share/wayland-protocols/stable/viewporter/viewporter.xml \ viewporter protocol \ /usr/share/wayland-protocols/unstable/xdg-output/xdg-output-unstable-v1.xml \ xdg-output-unstable-v1 protocol \ /usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml \ xdg-shell protocol \ /usr/share/wlr-protocols/unstable/wlr-layer-shell-unstable-v1.xml \ wlr-layer-shell-unstable-v1 zig cc \ -target native -mcpu=baseline \ -std=gnu11 -O2 -Wall -Wextra \ -Igenerated \ sl-cursor-shake.c \ generated/ext-foreign-toplevel-list-v1-protocol.c \ generated/ext-image-capture-source-v1-protocol.c \ generated/ext-image-copy-capture-v1-protocol.c \ generated/viewporter-protocol.c \ generated/xdg-output-unstable-v1-protocol.c \ generated/xdg-shell-protocol.c \ generated/wlr-layer-shell-unstable-v1-protocol.c \ $(pkg-config --cflags --libs wayland-client xcursor) \ -lm \ %{build_ldflags} \ -o sl-cursor-shake %install install -Dm0755 \ %{_builddir}/%{name}-%{version}/sl-cursor-shake \ %{buildroot}%{_bindir}/sl-cursor-shake %files %{_bindir}/sl-cursor-shake %changelog * Sat Oct 03 2026 Sl (Shahaf Levi) - 1.0.0-2 - Build with Zig using baseline CPU features. * Sun Sep 27 2026 Sl (Shahaf Levi) - 1.0.0-1 - Initial release of the package.