From 268dc488c3c55c4f0c6cb32bf76ac392ee235e50 Mon Sep 17 00:00:00 2001 From: Klaus Zipfel Date: Sun, 22 Feb 2026 13:38:49 +0100 Subject: [PATCH 1/2] Arch package: Cleaned old LEETMOUSE remnants. Added yeetmouse-gui package and yeetmouse meta-package --- .gitignore | 1 + Makefile | 4 ++-- README.org | 15 +++++++-------- pkg/PKGBUILD.template | 27 ++++++++++++++++++++++----- pkg/yeetmouse-driver-dkms.install | 17 +++++++++++++---- 5 files changed, 45 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index cb5e1b4..0ca27cd 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ *.mod.o *.o *.kate-swp +*.zst *.out .directory Module.symvers diff --git a/Makefile b/Makefile index 1867e95..9060eae 100644 --- a/Makefile +++ b/Makefile @@ -87,8 +87,8 @@ remove_dkms: install_i_know_what_i_am_doing: all driver_install install: manual_install_msg ; -package: - @echo -e "\n::\033[34m Building installable package\033[0m" +pkgarch: + @echo -e "\n::\033[34m Building installable arch package\033[0m" @echo "=====================================================" @./scripts/build_arch.sh @mv ./pkg/build/yeetmouse*.zst . diff --git a/README.org b/README.org index 4753b98..5907922 100644 --- a/README.org +++ b/README.org @@ -27,21 +27,20 @@ Keep in mind that the program needs to be *run with sudo privileges*. To run, simply use =sudo -E ./YeetMouseGui= -** Arch/Manjaro - For Arch and Manjaro, a =PKGBUILD= has been written for seamless integration into pacman. +** Arch + For Arch based systems, a =PKGBUILD= has been written for seamless integration into pacman. *Installation* #+begin_src sh - # Create the PKGBUILD, copy associated files and run makepkg - ./scripts/build_arch.sh - # Run pacman on the created package + make pkgarch sudo pacman -U pkg/build/yeetmouse*.zst + sudo modprobe yeetmouse #+end_src - All your mice should now be bound to this driver. They will also automatically bind to it after a reboot. - + All your mice should now be bound to this driver and the YeetMouseGui will be available on your system + *Uninstallation* #+begin_src sh - sudo pacman -R yeetmouse-driver-dkms + sudo pacman -R yeetmouse yeetmouse-driver-dkms yeetmouse-gui #+end_src All your mice should now be bound to the generic usbhid driver again. diff --git a/pkg/PKGBUILD.template b/pkg/PKGBUILD.template index f8ab640..c09c6ee 100644 --- a/pkg/PKGBUILD.template +++ b/pkg/PKGBUILD.template @@ -2,20 +2,24 @@ # Contributor: Christopher Williams pkgbase=yeetmouse -pkgname=('yeetmouse-driver-dkms') +pkgname=('yeetmouse' 'yeetmouse-gui' 'yeetmouse-driver-dkms') pkgver=__VERSION__ pkgrel=1 -pkgdesc="USB HID Boot Protocol mouse driver with acceleration." +pkgdesc="USB HID input handler applying mouse acceleration" arch=('i686' 'x86_64') url="https://github.com/AndyFilter/YeetMouse" license=('GPL2') -#makedepends=('python-setuptools') +makedepends=('glfw') source=("__SRC__") sha256sums=('__HASH__') -# Currently we only supply the driver +package_yeetmouse() { + pkgdesc="Meta package for the full YeetMouse experience" + depends=('yeetmouse-gui' 'yeetmouse-driver-dkms') +} + package_yeetmouse-driver-dkms() { - pkgdesc="Kernel driver for YEETMOUSE (DKMS-variant)" + pkgdesc="Kernel driver for YeetMouse (DKMS-variant)" depends=('dkms') install=yeetmouse-driver-dkms.install @@ -23,3 +27,16 @@ package_yeetmouse-driver-dkms() { echo $pkgbase-$pkgver make DESTDIR="$pkgdir" setup_dkms } + +package_yeetmouse-gui() { + pkgdesc="GUI to configure the YeetMouse driver" + depends=('yeetmouse-driver-dkms') + + cd "$pkgbase-$pkgver" + echo $pkgbase-$pkgver + make DESTDIR="$pkgdir" GUI + + install -d "${pkgdir}/usr/bin/" + install -Dm755 gui/YeetMouseGui "${pkgdir}/usr/bin/" + ln -s /usr/bin/YeetMouseGui "${pkgdir}/usr/bin/yeetmousegui" +} \ No newline at end of file diff --git a/pkg/yeetmouse-driver-dkms.install b/pkg/yeetmouse-driver-dkms.install index eb4202e..f24ce6b 100644 --- a/pkg/yeetmouse-driver-dkms.install +++ b/pkg/yeetmouse-driver-dkms.install @@ -1,9 +1,18 @@ -pre_remove() { - # Unbind all currently bound mice from yeetmouse and rebind them to usbhid - /usr/lib/udev/yeetmouse_manage unbind_all +post_install() { + cat< Date: Sun, 22 Feb 2026 16:43:55 +0100 Subject: [PATCH 2/2] Added leetmouse-driver-dkms as 'conflicts' --- pkg/PKGBUILD.template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/PKGBUILD.template b/pkg/PKGBUILD.template index c09c6ee..90f51bf 100644 --- a/pkg/PKGBUILD.template +++ b/pkg/PKGBUILD.template @@ -21,6 +21,7 @@ package_yeetmouse() { package_yeetmouse-driver-dkms() { pkgdesc="Kernel driver for YeetMouse (DKMS-variant)" depends=('dkms') + conflicts=('leetmouse-driver-dkms') install=yeetmouse-driver-dkms.install cd "$pkgbase-$pkgver" @@ -39,4 +40,4 @@ package_yeetmouse-gui() { install -d "${pkgdir}/usr/bin/" install -Dm755 gui/YeetMouseGui "${pkgdir}/usr/bin/" ln -s /usr/bin/YeetMouseGui "${pkgdir}/usr/bin/yeetmousegui" -} \ No newline at end of file +}