At Fri, 6 Mar 2009 08:25:43 -0200
Matias Grana wrote:

> I have a "Print Screen" key in my keyboard, which I usually press by
> mistake (it is very close to backspace). When I used gnome, this would
> take a picture of my desktop. But now that I use awesome, it does print
> the active window to the printer. I really don't want this. What would
> be the best way to disable it? Output of xev when pressing it is
> 
> KeyPress event, serial 29, synthetic NO, window 0x1800001,
>     root 0xa3, subw 0x0, time 29446053, (351,807), root:(352,827),
>     state 0x0, keycode 107 (keysym 0xff61, Print), same_screen YES,
>     XLookupString gives 0 bytes:
>     XmbLookupString gives 0 bytes:
>     XFilterEvent returns: False
> 
> Would  table.insert(globalkeys, key({ "Print" } ))  work?
> 
> TIA,
> -- Matías
> 

Adding a line like
        xmodmap -e "keycode 107 = "
to your startup files should solve your problem. What it does is basically
remove every keysym from key #107. If you then want to use it with awesome, you
can use either "#107" as it's symbol or set one by adding a symname after the =
sign in the line i pasted. If you need SysRq, you should do
        xmodmap -e "keycode 107 = Sys_Req"
instead.

-- 
GCS/IT/M d- s+:- a--- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o--
K- w--- O M-- V PS+ PE- Y+ PGP+++ t+ 5 X+ R tv+ b++ DI+++ D+++ G+
e- h! r y+

    Gregor Best

Attachment: signature.asc
Description: PGP signature

Reply via email to