Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am accustomed to pressing Fn+Left to simulate the Home key and Fn+Right for End.

On a keyboard with physical Home and End keys, using these Fn keyboard shortcuts do not work.

How can I map custom Fn keyboard shortcuts on Ubuntu Linux?

share|improve this question
possible duplicate of Bind multimedia keys. It is not an exact duplicate in the problem description perhaps, but it is solved by the same underlying process. – Daniel Andersson Jun 1 '12 at 6:40

2 Answers 2

Unlike modifiers such as Alt and Ctrl, pressing the Fn key is never communicated to the operating system. The key merely modifies the scancodes of other keys, so pressing Fn+Right would emulate an End key, even though it may not physically exist, but they are indistinguishable by the OS. This behaviour is controlled exclusively by the keyboard electronics and can therefore not be altered without messing with the circuitry or microcontroller.

share|improve this answer

I opened xev in a terminal. It detects when I press the Shift, Ctrl, Alt, and Win (Super), but when I pressed the Fn key it doesn't detect it.

So the software has nothing to do with the Fn key; it's up to the hardware to decide what key gets sent to the software (e.g. the Home or End key).

So your keyboard must already have it to be able to do this.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.