How do I remap keys in Qubes and is FN + arrow weird to jump to end of line?

I have a new laptop and my keyboard is behaving a bit differently. Not sure if this is due to different firmware or the actual hardware.

I am used to using FN + left/right arrow to jump to the beginning or end of a line. Since my new laptop does not do this out of the box, is this a weird shortcut and is there actually a default/better way to do this? And no, I am not using VIM all the time.

Anyway, how can I map this kind of shortcut in QubesOS/XFCE.

Thanks a lot!

1 Like

I used input-remapper for this purposes. U can install it using: sudo qubes-dom0-update input-remapper and sudo systemctl enable --now input-remapper for autostart it. More info u can receive here: GitHub - sezanzeb/input-remapper: 🎮 ⌨ An easy to use tool to change the behaviour of your input devices.

1 Like

Thanks for the information. I am sure your solution will work great. But isn’t there an option already built into XFCE or QubesOS? I don’t need a crazy good application. I just want to remap a key bind.

You are very likely to have xmodmap in dom0. I tried for 5 minutes, and it doesn’t seem to work in guests. Nonetheless try it, you might have the motivation required to get there.

If it doesn’t work you can remap scancodes to keycodes in udev, but it doesn’t work for key combinations:
https://wiki.archlinux.org/title/Map_scancodes_to_keycodes

Also check this list of tools. Most of them aren’t present in dom0 by default, but you might find a solution that fits you:
https://wiki.archlinux.org/title/Input_remap_utilities