Disabling Print Screen key



Hi,

My Print Screen key is too close to BackSpace, so I keep pressing it
by accident. I use KDE, and this makes "KSnapshoyt" pop up. (In
fluxbox, it sends the content of the terminal to the printer.)

I checked the key assignments of KDE, and I found no shortcut for the
PrtSc key, and even defining a different application for that key
would still make (only) KSnapshot pop up. (KSnapshot was assigned to
Crtl+PrtSc, and I disabled it too, just in case.)

My Google searchs did not help (even on this list).

So, I decided to disable the key.

Using "xev", I saw that the keycode was 111:

....
KeyRelease event, serial 31, synthetic NO, window 0x3600001,
root 0x91, subw 0x0, time 482199882, (485,527), root:(489,552),
state 0x0, keycode 111 (keysym 0xff61, Print), same_screen YES,
XLookupString gives 0 bytes:
....

Indeed, "xmodmap -pk" gave:

...
111 0xff61 (Print) 0xff15 (Sys_Req)
...

So, I did "xmodmap -e "keysym Print = BackSpace"". Now, "xev" gives:

....
KeyRelease event, serial 31, synthetic NO, window 0x3400001,
root 0x91, subw 0x0, time 482660638, (-260,401), root:(838,426),
state 0x0, keycode 111 (keysym 0xff08, BackSpace), same_screen YES,
XKeysymToKeycode returns keycode: 22
XLookupString gives 1 bytes: (08) "
....

and "xmodmap -pk" gives:

...
111 0xff08 (BackSpace)
...

But still, KSnapshot pops up, and the backspace has no effect.

Any suggestions or ideas (other than remove the key physically)??

Thanks,

Luis


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Disabling Print Screen key
    ... My Print Screen key is too close to BackSpace, ... I use KDE, and this makes "KSnapshoyt" pop up. ... would still make KSnapshot pop up. ... But still, KSnapshot pops up, and the backspace has no effect. ...
    (Debian-User)
  • [kde-linux] Disable KSnapshot<->Print Screen connection
    ... I have a user running KDE on openSuSE 10.3 who needs the print screen button ... Right now it brings up KSnapshot. ...
    (KDE)
  • [opensuse] Disable KSnapshot<->Print Screen connection
    ... I have a user running KDE on openSuSE 10.3 who needs the print screen button ... Right now it brings up KSnapshot. ...
    (SuSE)
  • Re: Disabling Print Screen key
    ... I can enable it by going into the KDE Control ... Perhaps you inadvertently made Print a shortcut for ksnapshot. ... By the way, I am using Etch, with the Debian kernel 2.6.18-k7. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: [SLE] Does KDE have a screen capture facility?
    ... > ksnapshot is part of KDE, why in the world would you recommend ... KSnapshot is much too easy to use to be a Linux app. ...
    (SuSE)