9

I'm used to Apple laptops, on which Function + Backspace is mapped to Delete. I'm also okay with Shift + Backspace.

Is there a way to obtain this? Note, I'm using Xmonad and have some keyboard modifications set up with xmodmap but have very little understanding of how it works.

I've tried xmodmap -e "keycode 22 = BackSpace KP_Delete BackSpace BackSpace", which works in some applications but is ignored by my terminal.

I've seen this question but it seems KDE-specific. I would prefer not to have to use some GUI.

  • 1
    I'm running Ubuntu 14.04 GNOME on a Macbook(10,1). fn+BackSpace works as Delete by default. I tried to bind Shift+BackSpace to Delete using xmodmap -e 'keycode 22 = BackSpace Delete' but that did not work. In applications Shift+BackSpace did nothing and in the terminal it would output ~2. – ballPointPenguin Apr 9 '14 at 16:03
  • 1
    It's weird that this question is not anwered. – Steven Roose Aug 27 '14 at 2:04
  • @StevenRoose Are you looking for an answer to this? – Seth Aug 27 '14 at 23:56
  • 1
    Why else would I open a bounty? – Steven Roose Sep 1 '14 at 0:19
1

I don't think this is possible. The function key itself doesn’t sent a key code, it modifies the code that is sent by the key it's pressed in combination with. That is, it's implemented by the keyboard, not the OS. There isn't a function-backspace code on most keyboards.

You can check this on your keyboard using the showkey command. Run showkey as root and try pressing various keys with, and without, the function key.

0

I found a useful tutorial here

http://blacketernal.wordpress.com/set-up-key-mappings-with-xmodmap/

Quite simple solution with different approach, and it was solving my problem

  • I've tried numerous tutorials. The Fn key does not seem to be mappable. I've been trying to get it working with Shift or Alt now, doesn't work either. – Steven Roose Sep 3 '14 at 0:09
  • This does not solve the question and link only posts are not answers – user284234 Oct 10 '15 at 4:56

Your Answer

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

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