I stopped using tweaks and xkb when I came across key-mapper. https://github.com/sezanzeb/key-mapper It's simple to use, reliable, works on Wayland and X, even persists into VMs. It even recognizes different keyboards.
This might help. My Thinkpad is old and doesn't have the communication keys new laptops have, so I haven't tested your use case myself, but I remember seeing those as possible options in the list of keys you can remap.
Unrelated question: what display scaling do you use with the Nano? I'm thinking about getting one, but worried that 200% might make everything too big (since the resolution is smaller than 4K), while 100% might make everything too small for comfort.
I'm worried that by doing that you'll create conflicts in a lot of circumstances. I would advise against it. Especially if you use common shortcuts like ctrl+q and ctrl+w.
Obviously, fixing the keyboard would be ideal but if that's not possible, you can remap your keys with programs that are made for people who want to create their own custom key mapping.
I haven't tried it out myself but this one here looks like it does what you want: https://github.com/sezanzeb/key-mapper/
You could try doing it with xmodmap, I think it should work that way. You can google xmodmap for tutorials.
https://github.com/sezanzeb/key-mapper looks like a GUI tool that could help, but I haven't tried it.
This: https://github.com/sezanzeb/key-mapper? I haven't. Looks like it sits in as a proxy input device above X11 so I bet that works more transparently than something like setxkbmap, which is what I've been using. I'll look into that, thanks!
key-mapper
https://github.com/sezanzeb/key-mapper/
If you are using Arch or Manjaro it can be installed via AUR.
I use it to remap my trackball buttons and add extra functions.
I am sorry, I think I missed two things: autoclick and someone else with a custom mapping for a mouse/trackpad that stopped working. And I could not find the link to the later...
Reading your post with more attention, it seems that your issue is different anyway. I do not know why it stopped working, my bet is that something in the new version erases any setting in the mouse as you said the macro is saved in the mouse itself.
Anyway, probably you can configure the same using Piper if your mouse is supported:
https://github.com/libratbag/piper
or Key Mapper:
https://github.com/sezanzeb/key-mapper
Or yet using xdotool
(once you find the correct button with xev | grep button
):
https://askubuntu.com/questions/1195481/how-do-i-map-the-middle-mouse-button-to-make-a-double-click
Another option is key-mapper which runs as a systemd service and lets you map all kinds of things to other things.
Just discovered this myself actually, X11 and Wayland.
Install this -
https://github.com/sezanzeb/key-mapper
Create a map for your trackpad for whatever registers as "triple" click, and map it to "disable".
Rinse and repeat for your external mouse.
>Someone recommended https://github.com/sezanzeb/key-mapper. I'll try to see if I can get my new G600 working with it.
hey dude good lucking out, looks like it's for my manjaro & your ubuntu too :)
> There is an interesting thread here https://askubuntu.com/questions/152297/how-to-configure-extra-buttons-in-logitech-mouse
keep in mind that's MX 620 not G600 & I think there is something odd with our 600 that it thinks our mouse and the side MMO keys are two different mice altogether
I installed https://github.com/sezanzeb/key-mapper and setup my own key combination of "Left shift" + "Caps Lock" to enable the "KEY_PRINT".
The procedure of holding the fn1 + page up for a few seconds felt just weird and wrong for me. It's a shame that Keychron doesn't have a better way of doing this.
I just bought G600 hoping that Piper would suffice.Unfortunately it has only partial support for macros(no delays between presses) and I couldnt make media keys(play/pause, next, prev) work.
Looks like i am going back to https://github.com/sezanzeb/key-mapper which i used with Razer mouse
Install keymapper Link
I just tested it for my system and it worked. X11, Gnome 40, Arch.
When configuring, for the key I had: BTN_MIDDLE and for the mapping I had: super_l+A
Key-mapper allows mapping keys to macro from what I see, but this has a clearer interface for that purpose. Pretty cool, though I only have a logitech wireless mouse and not keyboard.
Not sure what you want. But if you're looking for key remapping for linux, have a look at keyd or key-mapper
I did a apt search keymap
and all I can find is some lib keymap for vim and emacs
Are you using the latest version:
https://github.com/sezanzeb/key-mapper/commit/39714cde4e50ebf850d4436a62f1251b48ff6fff
​
You should able to debug with debug messages.
Thanks for sharing. I haven't tried key-mapper, but I use a similar tool called autokey that seems to do something similar, but on a per application/window basis allowing finer control. So all in all, my solution has these two layers of key mapping
The button clicks are read as pressed and released. It's up to the software reading the clicks as to what and when to react. As it seems like you want to change this global behavior, be warned that some software may have issues.
Take a look at key-mapper
and see if it will do what you want.
Ya, I just tested and it doesnt work. I've also tried with sudo. Its just not working.
Seems it doesnt save/apply. This xfce4-mouse-settings needs to be fixed or another app needs to be used by default.
Same with touchpad-indicator. touchpad-speed is not saved/applied.
Unless you find another app that works (and please share here if you do) keep an eye on key-mapper Which I've opened a feature request asking for mouse-speed adjustment support.
This is usually done in config files and command line (see, e.g., evsieve README), but I have some helper applications bookmarked... maybe Key Mapper?