---------- Forwarded message ----------
From: Christophe-Marie Duquesne <[email protected]>
Date: Fri, Mar 6, 2009 at 10:06 AM
Subject: Re: disabling annoying key
To: Matías Graña <[email protected]>


I'm binding "Print" to 'import -window root ~/pics/screen.png' (import
is provided by imagemagick). It is not annoying since unlike
gnome-screenshot it does not popup anything so as a consequence it
does not steal the focus, and I can still use it to take screenshots
of my desktop. I also bind shift-Print to 'import
~/pics/client-screen.png'.

On Fri, Mar 6, 2009 at 7:44 AM, Matías Graña <[email protected]> wrote:
> 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].
>



--
Christophe-Marie Duquesne



-- 
Christophe-Marie Duquesne

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

Reply via email to