Package Details: btnx-git r23.ef3f5b9-1

Git Clone URL: (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:
Licenses: GPL2
Provides: btnx
Submitter: ragouel
Maintainer: None
Last Packager: ragouel
Votes: 0
Popularity: 0.000000
First Submitted: 2020-07-08 01:46 (UTC)
Last Updated: 2020-07-08 01:46 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

noabody commented on 2021-11-25 16:14 (UTC) (edited on 2021-11-25 16:21 (UTC) by noabody)

current etc/makepkg.conf contains:

CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection"

causes compile error "format-security: warning treated as error" and requires this in build section to successfully compile

  export CFLAGS="${CFLAGS// -Werror=format-security}"

which is just a cheater way to strip the format-security option out

thedanbob commented on 2021-02-16 21:21 (UTC)

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 TYPE_MOUSE                             0
 #define TYPE_KBD                               1

SeanSeymour commented on 2020-10-10 16:07 (UTC)

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.