- Subject: [jed-users] Re: Using XF86 keys in xjed
- From: Morten Bo Johansen <mbj@xxxxxxxxx>
- Date: Sat, 27 Feb 2021 13:17:33 +0100
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>.
[2021 date index]
[2021 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]