jed-users mailing list

[2021 Date Index] [2021 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [jed-users] Re: Using XF86 keys in xjed


Thanks, it works!

best,
I.

On Sat, Feb 27, 2021, at 14:17, Morten Bo Johansen wrote:
> Itai Arad <ia@xxxxxxxxxxxx> wrote:
> 
> > 
> > Hi,
> > 
> > Is it possible to use the XF86 media keys in xjed ? I would
> > like to bind them to some functions.
> > 
> > Currently, when I press one of these keys, such as
> > XF86ScreenSaver or XF86Reload, nothing happens in xjed and I
> > cannot detect any key pressed.
> 
> This seems to be one way of doing it:
> 
> 1) start the xev program from a terminal
> 
> 2) press the relevant key and note the "keysym" code in the
>    terminal's output. For the left "windows key", it is
>    "0xffeb" on my system.
>    
> 3) to use this key in e.g. text_mode, insert the following
>    lines in your ~/.jedrc:
> 
>    define text_mode_hook ()
>    {
>    #ifdef XWINDOWS
>      x_set_keysym (0xFFEB, 0, "^XX");
>    #endif
>    
>      if (is_defined ("x_server_vendor"))
>      {
>        local_setkey ("my_slang_func", "^XX");
>      }    
>    }
>    
> Then pressing the left windows key in xjed will run
> "my_slang_func"
> 
> If you simply want to reassign a function to your key that is
> already associated with the "^XX" key combo, then you may of
> course skip the local_setkey () part.
> 
> 
>  Morten
> 
> _______________________________________________
> For list information, visit <http://jedsoft.org/jed/mailinglists.html>.
> 
>
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


[2021 date index] [2021 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]