Giter Club home page Giter Club logo

cdobrich / btnx-config Goto Github PK

View Code? Open in Web Editor NEW
52.0 10.0 13.0 1.32 MB

btnx-config is a configuration tool for btnx (Button Extension). It allows the user to send keyboard combinations or execute commands with mouse buttons. btnx-config provides mouse and button detection, and an easy way to configure btnx's behavior. See https://github.com/cdobrich/btnx/ for btnx.

License: GNU General Public License v2.0

Shell 8.94% C 67.98% C++ 1.65% Makefile 6.94% M4 13.67% Yacc 0.79% sed 0.04%
button mouse remapping

btnx-config's People

Contributors

asl97 avatar cdobrich avatar doktoil-makresh avatar lingo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

btnx-config's Issues

Fails to recognize mice

Howdy. Thank you very much for the work.

I have an Elecom HUGE trackball and a Logitech MX Master, neither of which are recognized by the application on Ubuntu 19.10. I have uninstalled the applications (btnx and btnx-config) for now, but can easily run tests if you are interested.

btnx isn't recognizing my Saitek R.A.T. 7 on a single debian system

I'm using btnx to remap my mouse events for 1 year now. Lately I switched from Ubuntu to Debian Jessie on all my machines. On 2/3 machines btnx works perfectly, however on my home tower it isn't recognizing my Saitek R.A.T. 7 mouse (all other machines recognize the mouse).
As soon as I'm getting into the mouse recognition the only thing it finds is my keyboard (if I press anything on it).

Things I already tried:

  • Set the mouse IDs manually with lsusb -> "Error: mouse handler IDs set but not found"
  • Remove the config
  • Rebuild btnx & btnx-config

lsusb: "Bus 002 Device 011: ID 06a3:0ccb Saitek PLC"
btnx_config:

Mouse
vendor_name = Saitek PCL
product_name = R.A.T. 7
vendor_id = 0x06a3
product_id = 0x0bd0
[...]

Any ideas?

Installation fails

Hi, I am trying to install btnx-config on a new Ubuntu machine, running Ubuntu 19.04. I ran this command prior to my installation attempt:
sudo apt install libdaemon-dev libglade2-dev libgtk2.0-dev

I then ran this command, again following the instructions:
./configure make
This is my output:

configure: WARNING: you should use --build, --host, --target
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for make-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for scrollkeeper-config... no
checking for gksu... no
checking for kdesu... no
checking for tar... /usr/bin/tar
checking for make-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK... yes
checking for GLIB... yes
checking for GLADE... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking for memset... yes
checking for select... yes
checking for setlocale... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strtol... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking build system type...
Invalid configuration make': machine make' not recognized
configure: error: /bin/bash config/config.sub make failed

How to make/install help files?

Thanks cdobrich for xbtn resurrection!

I followed your build instructions for xbtn & xbtn-config successfully on xubuntu 18.04.

The config & daemon work great, but the built-in help reports "Help Support not compiled" and refers to the now defunct http://www.ollisalonen.com .

I managed to build the help, but not sure how to make it available in the app...
sudo apt install librarian-dev
sudo apt install scrollkeeper
cd doc
make
make install

Any suggestions?

gksu missing in Ubuntu

must replace EXEC=gksu btnx-config in /usr/share/applications/btnx-config with
Exec=sh -c 'pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS /usr/sbin/btnx-config'

udev's transition to systemd

When trying to compile BTNX-Config under a fresh install of Fedora 21 Linux 3.19.3-200.fc21.x86_64 today, I got this error message:

udev.c: In function ‘udev_create’:
udev.c:78:4: warning: too many arguments for format [-Wformat-extra-args]
    mouse_get_vendor_id(), mouse_get_product_id());
    ^
udev.c:84:4: warning: too many arguments for format [-Wformat-extra-args]
    mouse_get_vendor_id(), mouse_get_product_id());
    ^

I am fairly certain this has to do with some changes in the underlying system involving udev's transition to systemd. Ugh. I hope this is an easier fix than it looks like.

btnx-config won't detect my MX Revolution Mouse

Ubuntu 13.10 on an ASUS M70SA. Ubuntu knows I have a MX Revolution mouse, but btnx-config won't allow me to set the 'Enable revoco' option, saying it isn't detected.

I have set the product field to "Logitech MX Revolution Mouse", but left the Vendor blank.

I have tried setting the Hot-plugging & WAIT_FOR_SYSFS udev options in all possible combinations but btnx-config still doesn't recognise my MX Revolution mouse.

I have, however, been able to add ALL the buttons using the "Detect mouse & buttons" function. (Though btnx-config hung up on me a few times whilst doing it, it eventually worked.)

Cheers,
Nap

This is of my devices:
egrep "Name|Handlers" /proc/bus/input/devices
N: Name="Sleep Button"
H: Handlers=kbd event0
N: Name="Lid Switch"
H: Handlers=event1
N: Name="Power Button"
H: Handlers=kbd event2
N: Name="AT Translated Set 2 keyboard"
H: Handlers=sysrq kbd event3
N: Name="Asus Laptop extra buttons"
H: Handlers=rfkill kbd event4
N: Name="Video Bus"
H: Handlers=kbd event5
N: Name="HDA Intel Headphone"
H: Handlers=event6
N: Name="HDA Intel Headphone"
H: Handlers=event7
N: Name="HDA Intel Mic"
H: Handlers=event8
N: Name="USB 2.0 Camera"
H: Handlers=kbd event9
N: Name="IR-receiver inside an USB DVB receiver"
H: Handlers=kbd event10
N: Name="ITE8708 CIR transceiver"
H: Handlers=kbd event11
N: Name="MCE IR Keyboard/Mouse (ite-cir)"
H: Handlers=sysrq kbd mouse0 event12
N: Name="HDA ATI HDMI HDMI/DP,pcm=3"
H: Handlers=event14
N: Name="Logitech MX Revolution Mouse"
H: Handlers=kbd mouse2 event15
N: Name="btnx keyboard"
H: Handlers=sysrq rfkill kbd event13 js0
N: Name="btnx mouse"
H: Handlers=mouse1 event16

BTNX and Ubuntu 22.04

Ever since I have updated one of my machines to Ubuntu 22.04, I cannot seem to get BTNX to work. It works fine elsewhere.
Apparently it installs correctly, I can open the GUI and play around. But the configuration is not applied.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.