Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*.mod.o
*.o
*.kate-swp
*.zst
*.out
.directory
Module.symvers
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
15 changes: 7 additions & 8 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
28 changes: 23 additions & 5 deletions pkg/PKGBUILD.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,42 @@
# Contributor: Christopher Williams <chilliams (at) gmail (dot) com>

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')
conflicts=('leetmouse-driver-dkms')
install=yeetmouse-driver-dkms.install

cd "$pkgbase-$pkgver"
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"
}
17 changes: 13 additions & 4 deletions pkg/yeetmouse-driver-dkms.install
Original file line number Diff line number Diff line change
@@ -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<<EOF

Activate YeetMouse by loading the kernel module:

sudo modprobe yeetmouse

EOF
}

post_remove() {
pre_remove() {
# Unload the kernel module from memory
rmmod yeetmouse
}

post_upgrade() {
post_install
}