Comments (28)
The difficulty is, that mice don't report end events for that. So I'll have to detect the end of that myself. Some experimental stuff exists but I need to think about it for some more time. I also think I need a break after working almost non-stop on key-mapper in my free time for over two months.
from input-remapper.
https://github.com/sezanzeb/key-mapper#ubuntudebian
no, just build it and install it
I'll make release 0.6.0 possibly next weekend, you'll also get the deb from there
from input-remapper.
Hi, thanks for posting an issue!
First, please install the latest source. Afterwards, can you run sudo key-mapper-gtk -d
and try to set your buttons 6 and 7 to something? Post the output here.
from input-remapper.
I installed - key-mapper-0.4.0.deb
I pressed button 6 and 7 a couple times.
Loaded config from "/home/jb/.config/key-mapper/config.json"
Writing "/home/jb/.config/key-mapper/xmodmap.json"
INFO: logger.py, line 116, Could not figure out the version
DEBUG: logger.py, line 117, The 'key-mapper' distribution was not found and is required by the application
WARNING: logger.py, line 120, Debug level will log all your keystrokes! Do not post this output in the internet if you typed in sensitive or private information with your device!
DEBUG: logger.py, line 126, pid 9765
DEBUG: data.py, line 86, Found data at "/usr/share/key-mapper"
DEBUG: getdevices.py, line 93, Discovering device paths
SPAM: getdevices.py, line 116, Found "Logitech M705", /dev/input/event11, usb-0000:00:1d.2-1
SPAM: getdevices.py, line 116, Found "HP WMI hotkeys", /dev/input/event7, wmi
SPAM: getdevices.py, line 116, Found "ST LIS3LV02DL Accelerometer", /dev/input/event6, lis3lv02d
SPAM: getdevices.py, line 116, Found "SynPS/2 Synaptics TouchPad", /dev/input/event5, isa0060
SPAM: getdevices.py, line 116, Found "Video Bus", /dev/input/event4, LNXVIDEO
SPAM: getdevices.py, line 116, Found "AT Translated Set 2 keyboard", /dev/input/event3, isa0060
SPAM: getdevices.py, line 116, Found "Sleep Button", /dev/input/event0, PNP0C0E
INFO: getdevices.py, line 179, Found "Logitech M705", "HP WMI hotkeys", "ST LIS3LV02DL Accelerometer", "SynPS/2 Synaptics TouchPad", "Video Bus", "Sleep Button"
DEBUG: presets.py, line 144, The newest preset is "Logitech M705", "Activities"
DEBUG: window.py, line 422, Selecting device "Logitech M705"
DEBUG: window.py, line 241, "Logitech M705" presets: "Activities", "new preset"
DEBUG: window.py, line 469, Selecting preset "Activities"
INFO: mapping.py, line 139, Loading preset from "/home/jb/.config/key-mapper/presets/Logitech M705/Activities.json"
SPAM: mapping.py, line 175, (1, 274, 1) maps to super_l
DEBUG: getdevices.py, line 93, Discovering device paths
SPAM: getdevices.py, line 116, Found "Logitech M705", /dev/input/event11, usb-0000:00:1d.2-1
SPAM: getdevices.py, line 116, Found "HP WMI hotkeys", /dev/input/event7, wmi
SPAM: getdevices.py, line 116, Found "ST LIS3LV02DL Accelerometer", /dev/input/event6, lis3lv02d
SPAM: getdevices.py, line 116, Found "SynPS/2 Synaptics TouchPad", /dev/input/event5, isa0060
SPAM: getdevices.py, line 116, Found "Video Bus", /dev/input/event4, LNXVIDEO
SPAM: getdevices.py, line 116, Found "AT Translated Set 2 keyboard", /dev/input/event3, isa0060
SPAM: getdevices.py, line 116, Found "Sleep Button", /dev/input/event0, PNP0C0E
INFO: getdevices.py, line 179, Found "Logitech M705", "HP WMI hotkeys", "ST LIS3LV02DL Accelerometer", "SynPS/2 Synaptics TouchPad", "Video Bus", "Sleep Button"
DEBUG: reader.py, line 117, Starting reading keycodes from "Logitech M705"
SPAM: pid 9776, reader.py, line 135, got (1, 272, 1)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 0)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 1)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 0)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 1)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 0)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 1)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 0)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 1)
SPAM: pid 9776, reader.py, line 135, got (1, 272, 0)
DEBUG: window.py, line 184, Closing window
DEBUG: reader.py, line 79, Sending close msg to reader
DEBUG: pid 9776, reader.py, line 158, Reader stopped
DEBUG: window.py, line 184, Closing window
(key-mapper-gtk:9765): Gtk-CRITICAL **: 13:01:15.746: gtk_main_quit: assertion 'main_loops != NULL' failed
from input-remapper.
I mean using the instructions here: https://github.com/sezanzeb/key-mapper#ubuntudebian, involving the git clone
Since I can't see button 6 and 7 in the log, lets go one level deeper and use evtest
run sudo evtest
and send me the events caused by your two buttons please (after clicking the defaults button)
from input-remapper.
from input-remapper.
I think you copied some sort of previous console output into your terminal
And it seems you didn't execute sudo dpkg -i ./dist/key-mapper-0.4.0.deb
from input-remapper.
from input-remapper.
Don't worry!
Copying the instructions line by line, executing each one individually, is the safest way. Copying and pasting multiple at once sometimes doesn't work if one of the commands suddenly expects input.
from input-remapper.
from input-remapper.
that one will be fixed be the next command sudo apt -f install
from input-remapper.
from input-remapper.
I can't see any attachment
from input-remapper.
from input-remapper.
I just filtered the input from mouse-movement events, and this is what is left over:
Event: time 1609522127.108917, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1609522127.108917, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1
Event: time 1609522127.300908, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1609522127.300908, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0
Event: time 1609522154.899485, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1609522154.899485, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1
Event: time 1609522155.077489, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1609522155.077489, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0
So evtest doesn't report mouse 6 and 7. I don't know how xev would be able to detect anything in that case.
Did you make sure to use "Restore Defaults" before running evtest? Or was an injection ongoing?
from input-remapper.
*ah, injection couldn't be active, it would be visible in evtest.
So your mouse buttons don't do anything. Are you sure they are visible in xev?
from input-remapper.
from input-remapper.
please run (EDIT: forget about that, that doesn't show what I thought it shows)xev | grep button -B2
and try again
from input-remapper.
it's probably
Event: time 1609522136.349847, type 2 (EV_REL), code 6 (REL_HWHEEL), value -1
Event: time 1609522136.349847, type 2 (EV_REL), code 12 (REL_HWHEEL_HI_RES), value -120
then. very interesting. key-mapper can't map that yet indeed. I'm currently working on something somewhat similar with gamepad joysticks, I'll probably include a way to map scroll wheel actions
from input-remapper.
from input-remapper.
Try this branch please:
https://github.com/sezanzeb/key-mapper/tree/wheel-attempt-2
from input-remapper.
Ah, I forgot to mention, the git clone command changes if you want to clone a different branch to:
git clone -b wheel-attempt-2 https://github.com/sezanzeb/key-mapper.git
from input-remapper.
Same here on a Logitech M590.
$ xev | grep button
state 0x0, button 6, same_screen YES
state 0x0, button 6, same_screen YES
state 0x0, button 7, same_screen YES
state 0x0, button 7, same_screen YES
from input-remapper.
@sojusnik please try this branch: git clone -b wheel-attempt-2 https://github.com/sezanzeb/key-mapper.git
nobody gave me feedback yet if it works properly, the feature is basically finished and has unittests. Which distro are you on?
- For ubuntu: build the deb file
- For manjaro: try
cd key-mapper && sudo pip install .
You'll know if you installed it correctly if "shift + del" activates the "restore defaults" button, because that is also new.
from input-remapper.
well, lets just hope that it works well for everybody. pushed it to main
from input-remapper.
For ubuntu: build the deb file
What's the correct way to "build" a .deb file on Ubuntu?
I'm currently using the 0.5.0.deb from here.
Do I have to uninstall this .deb file, before building the updated .deb?
from input-remapper.
from input-remapper.
I see, don't worry too much about the stuff here
from input-remapper.
Related Issues (20)
- Cannot install input-remapper under Debian 12 HOT 2
- Feature: Macro set to random number in range HOT 2
- makes kde lag HOT 1
- [feature request] system-wide configuration
- Combos involving "parenleft" and "parenright" don't work as expected. HOT 1
- Double click remapping to keyboard key messes with mouse keys operation
- Meta key no longer getting injected
- Feature request: Automatically switch preset depending on focused window HOT 1
- How to use macros?
- Macro for App Switcher while holding ALT-TAB ?
- Option to bypass mapping on if_eq condition fail
- Tartarus V2 seen as mouse instead of keyboard HOT 1
- German umlaut keys (ΓΌ, Γ€ ...) and Eszett key (Γ)
- How to bind keyboard keys as gamepad joystick axis?
- Multiple Devices as Inputs
- GUI not starting due to missing `pkexec` (Debian 12 KDE) HOT 1
- Won't auto-start, have to manually start for each device on every login HOT 1
- Mapped Grave to Escape, Can't Map Escape to Grave/Tilde
- Max macro length?
- Can't use Input Remapper with Python 3.12 on EndeavourOS (Arch Linux) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from input-remapper.