You don't type in the $ only xev and it works on Debian Wheezy.

JT

On 9/12/2015 6:41 AM, Martin Smith wrote:
> Thanks for your advice.
>
> When I tried $ xev in terminal I got command not found.
> I will ask a freind to guide me in terminal to follow  your advice.
>
> Martin
> -----Ursprungligt meddelande-----
> Från: Erik Christiansen [mailto:[email protected]]
> Skickat: den 11 september 2015 11:39
> Till: [email protected]
> Ämne: Re: [Emc-users] Keyboard options in 2.7.0.?
>
> On 10.09.15 23:35, Martin Smith wrote:
>> I have  a Swedish keyboard installed. In 2.5.4 (Ubuntu) there is
>> Setting, Keyboard, Layout and Options where you can change key
>> behavior. In my case I could change comma (,) to dot (.) in the numeric 
>> keypad.
>> I would like to do the same change In 2.7.0 (Wheezy). It´s
>> inconvinient not having dot in the numeric keypad when running LCNC.
> Having not yet found fully documenting manpages for GUI stuff, I can only 
> advise on a more fundamental approach. Here, starting:
>
> $ xev
>
> then pressing '.' in the numeric keypad (yours will be labelled ','),
> gives:
>
> KeyPress event, serial 38, synthetic NO, window 0x3000001,
>      root 0x132, subw 0x0, time 585013, (142,317), root:(154,452),
>      state 0x0, keycode 91 (keysym 0xff9f, KP_Delete), same_screen YES,
>      XLookupString gives 0 bytes:
>      XmbLookupString gives 0 bytes:
>      XFilterEvent returns: False
>
> amongst its somewhat verbose output. (Look for "KeyPress event") Now we know 
> that the key is "keycode 91". In contrast, pressing the main keyboard '.' 
> gives:
>
> KeyPress event, serial 35, synthetic NO, window 0x3000001,
>      root 0x132, subw 0x0, time 1088960, (262,429), root:(274,564),
>      state 0x0, keycode 60 (keysym 0x2e, period), same_screen YES,
>      XLookupString gives 1 bytes: (2e) "."
>      XmbLookupString gives 1 bytes: (2e) "."
>      XFilterEvent returns: False
>
> revealing that its keysym is 0x2e, so your desired mapping is nothing more 
> than:
>
> $ xmodmap -e 'keycode 91 = 0x2e'
>
> To confirm the process here, where the numeric pad already generates a 
> period, I configured the reverse conversion:
>
> $ xmodmap -e 'keycode 91 = 0x2c'
>
> with the result that repeatedly whacking the numeric '.' key now emits:
>
> $ ,,,,,
>
> OK, how to automate that? The quickest is just to copy the xmodmap line to 
> your ~/.bashrc or ~/.profile. Or, if preferred, just the text inside the 
> quotes can be added to ~/.Xmodmap, instead, if that seems simpler.
> If, however, there are other times when you run Swedish applications, 
> requiring a decimal comma, then it might be more convenient to place the 
> xmodmap line in a wrapper shell function (or simple alias) around the command 
> you use to start LinuxCNC.
>
> What could give you more control than that?
>
> Erik
>
> --
> The meta-problem here is that the configuration wizard does all the approved 
> rituals (GUI with standardized clicky buttons, help popping up in a browser, 
> etc. etc.) but doesn't have the central attribute these are supposed to 
> achieve:
> discoverability. That is, the quality that every point in the interface has 
> prompts and actions attached to it from which you can learn what to do next.
>                                     - Eric Raymond, in "The Luxury of 
> Ignorance."
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users


------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to