On Fri, Mar 06, 2009 at 12:06:17PM +0100, Gregor Best wrote:
> 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.

That's a good shot! Since I usually press it when I want to press
backspace, maybe I'll bind to it.

Thanks!!
-- Matias


-- 
To unsubscribe, send mail to [email protected].

Reply via email to