Package Details: btnx-git r23.ef3f5b9-1

Git Clone URL: https://aur.archlinux.org/btnx-git.git (read-only, click to copy)
Package Base: btnx-git
Description: A daemon that enables rerouting of mouse button events through uinput as keyboard and other mouse button combinations
Upstream URL: https://github.com/cdobrich/btnx
Licenses: GPL2
Provides: btnx
Submitter: ragouel
Maintainer: None
Last Packager: ragouel
Votes: 0
Popularity: 0.000000
First Submitted: 2020-07-08 01:46
Last Updated: 2020-07-08 01:46

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

thedanbob commented on 2021-02-16 21:21

After updating to the latest linux-lts (5.10) btnx stopped working. Turns out it only searches /dev/input/event0 through /dev/input/event19 for your mouse, and mine ended up at /dev/input/event20. This patch fixed it:

diff --git a/src/btnx.c b/src/btnx.c
index 48f1241..0efc775 100644
--- a/src/btnx.c
+++ b/src/btnx.c
@@ -58,7 +58,7 @@

 #define CHAR2INT(c, x) (((int)(c)) << ((x) * 8))
 #define INPUT_BUFFER_SIZE              512
-#define NUM_EVENT_HANDLERS             20
+#define NUM_EVENT_HANDLERS             21
 #define NUM_HANDLER_LOCATIONS  3
 #define TYPE_MOUSE                             0
 #define TYPE_KBD                               1

SeanSeymour commented on 2020-10-10 16:07

To get this package to install, I had to modify PKGBUILD to change "./configure --prefix=/usr" to "./configure --prefix=/usr --sbindir=/usr/bin" in the build function. Same thing with the related btnx-config-git AUR package.