Open a terminal. (Ctrl+Alt+T)
Become root:
sudo -i
Install the Python package:
apt install -y python3-dev python3-pip gcc
pip3 install git+https://github.com/philipl/evdevremapkeys.git
Create the configuration directory:
mkdir -p /etc/xdg/evdevremapkeys
Create a configuration:
vim /etc/xdg/evdevremapkeys/config.yaml
devices:
- input_name: "Logitech M705"
output_name: remap-mouse
remappings:
BTN_RIGHT:
- KEY_LEFTCTRL
- KEY_A
You can figure out the name of your devices with
evdevremapkeys.py -l
- note that this requires root privileges.
Create the systemd unit file:
vim /etc/systemd/system/evdevremapkeys.service
[Unit]
Description=evdevremapkeys
[Service]
ExecStart=/usr/bin/python3 /usr/local/bin/evdevremapkeys.py
[Install]
WantedBy=multi-user.target
Enable and start the systemd unit:
systemctl daemon-reload
systemctl enable evdevremapkeys
systemctl start evdevremapkeys
HHHHHHhhhhhhhhHHHHJJJJJjjkjhkjgjgfjhhhhhhhhhhhhhhh
doesnt work :(