Disable shift-backspace logout in XGL and enable AltGr

It drove me mad that i logged always out from XGL after pressing accidentally shift-backspace.

You have to type:

xmodmap -e "keycode 22 = BackSpace BackSpace"

after your Window Manager started (that would be beryl in my case).

And because my AltGr key didn’t worked too i first looked at the keycode with xev which was 113.

Then a little lookup how the key is occupied:

xmodmap -pk

And finally to make the key work again:

xmodmap -e 'keycode 113 = Mode_switch'

And because i am a lazy person and dont want to type that over and over again to load it on startup i put both in my ~/.Xmodmap file:

echo 'keycode 22 = BackSpace BackSpace' >> ~/.Xmodmap
echo 'keycode 113 = Mode_switch' >> ~/.Xmodmap

technorati tags:, ,

~ by princ3 on October 4, 2006.

12 Responses to “Disable shift-backspace logout in XGL and enable AltGr”

  1. Thanks, for the quickfix and instructions on how to solidify it!

  2. Thanks, found it on a german forum, i only translated it.

  3. Cheers. This was giving me the shit’s

  4. Thank you, you are welcome.

  5. muito obrigado, era exatamente o que eu estava precisando !!

    thank you very much, it was accurately what I was needing !!

  6. I have this problem, but when I try to run that command I get this

    ” xmodmap -e “keycode 22 = BackSpace BackSpace”
    xmodmap: unknown command on line commandline:1
    xmodmap: unable to open file ‘22′ for reading
    xmodmap: unable to open file ‘=’ for reading
    xmodmap: unable to open file ‘BackSpace’ for reading
    xmodmap: unable to open file ‘BackSpace”’ for reading
    xmodmap: 5 errors encountered, aborting.”

    any ideas?

  7. try to remove the second quotation mark.

  8. I’m getting the same error as coolio.
    This shift + backspace issue has been killing me during my coding.
    I will do just about anything to get rid of it.
    Please help me…

  9. Thanks :D

  10. [...] this fixed it only for the current session though. Finally found out how to set it permanently here. Type echo ‘keycode 22 = BackSpace BackSpace‘ >> ~/.Xmodmap to add it to the .Xmodmap file and [...]

  11. Thanks so much for this. My classmates were getting annoyed over my daily screaming every time I accidentally logged myself out.

  12. Thanks a lot, that helped sooo much!

Leave a Reply