How can I remap the keys/keycodes of a usb foot switch on SystemD?

I was using the old udev rules to remap my usb foot switch key(the default is the keycode 36 -b :S) to Alt_L. Previosly I created a udev rule and a xmodmap file. But i'm trying the systemd now, and the old style keymaps are gone.

My usb foot switch is the following(lsusb output):

0c45:7403 Microdia Foot Switch

In my old udev files, i had the following content:

/etc/udev/rules.d/95-keymap.rules

"ENV{ID_VENDOR_ID}=="0c45", ENV{ID_MODEL_ID}=="7403", RUN+="keymap $name microdia"

/lib/udev/keymaps/microdia

0x70005 F13

~/.Xmodmap

keycode 191 = Alt_L Meta_L Alt_L Meta_L

So, when I was pulling the switch the effect is that the key 'ALT_L' was pressed. How can i reproduce the same setup with the systemd/udev hwdb?

Thanks in advance.

5 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like