More > JRiver Media Center 23 for Linux

JRiver Media Center 23.0.84 for Debian Jessie (amd64, i386 and arm)

<< < (5/6) > >>

bob:

--- Quote from: RemyJ on December 27, 2017, 06:27:56 pm ---It's funny, I was just getting my old XKeys 128 key keyboard up and running again and was trying various XF86 keys.  The basics work but how about implementing more?
Even Up, Down, (Ctrl)Left, (Ctrl)Right, Next, Prior and Return would be great for navigating playing now.

--- End quote ---
The arrow keys, etc currently work in playing now.
I'm not sure what you are seeing as missing.

The linux XF86keysym.h definitions have stuff like the audio keys (PLAY, STOP, etc) and stuff like:
XF86XK_Back
but I don't see any arrow key references.

RemyJ:

--- Quote from: bob on January 02, 2018, 10:30:47 am ---The arrow keys, etc currently work in playing now.
I'm not sure what you are seeing as missing.

The linux XF86keysym.h definitions have stuff like the audio keys (PLAY, STOP, etc) and stuff like:
XF86XK_Back
but I don't see any arrow key references.

--- End quote ---

They are the standard keys in ./xkbcommon/xkbcommon-keysyms.h
#define XKB_KEY_Left                          0xff51  /* Move left, left arrow */
#define XKB_KEY_Up                            0xff52  /* Move up, up arrow */
#define XKB_KEY_Right                         0xff53  /* Move right, right arrow */
#define XKB_KEY_Down                          0xff54  /* Move down, down arrow */

etc.

If the Playing Now window has focus, you can press ctrl+right and skip forward 5 seconds, ctrl+left to skip back 5 seconds,  up and down to move up and down in the list, and enter to play the highlighted track.  Using xdotool to send those keystrokes doesn't work however...

xdotool search --class "Media_Center_23" key Up
xdotool search --class "Media_Center_23" key Ctrl+Right

You can use xdotool to send the XF86Audio keys but that doesn't help navigate the list.


bob:

--- Quote from: RemyJ on January 02, 2018, 08:15:50 pm ---They are the standard keys in ./xkbcommon/xkbcommon-keysyms.h
#define XKB_KEY_Left                          0xff51  /* Move left, left arrow */
#define XKB_KEY_Up                            0xff52  /* Move up, up arrow */
#define XKB_KEY_Right                         0xff53  /* Move right, right arrow */
#define XKB_KEY_Down                          0xff54  /* Move down, down arrow */

etc.

If the Playing Now window has focus, you can press ctrl+right and skip forward 5 seconds, ctrl+left to skip back 5 seconds,  up and down to move up and down in the list, and enter to play the highlighted track.  Using xdotool to send those keystrokes doesn't work however...

xdotool search --class "Media_Center_23" key Up
xdotool search --class "Media_Center_23" key Ctrl+Right

You can use xdotool to send the XF86Audio keys but that doesn't help navigate the list.

--- End quote ---

Those likely could be added. The current code looks for
XK_Up
XK_Down
XP_KP_Up
and so forth...

It's how MC gets those keys in it's UI.

Hmmm, it seems like XK_Up and XKB_Up are the same value which means you should already be able to inject those keys.
Will check a bit more.

RemyJ:

--- Quote from: bob on January 04, 2018, 09:19:15 am ---Those likely could be added. The current code looks for
XK_Up
XK_Down
XP_KP_Up
and so forth...

It's how MC gets those keys in it's UI.

Hmmm, it seems like XKnd XKB_Up are the same value which means you should already be able to inject those keys.
Will check a bit more.

--- End quote ---

Nope, doesn't work.  xdotool uses the names without the XK or XKB prefix

--- Code: ---xdotool search --limit 1 --class "Media_Center_23" key Up

--- End code ---
results in nothing happening in MC.


--- Code: ---xdotool search --limit 1 --class "Media_Center_23" key XF86AudioNext

--- End code ---
does work so I know xdotool is getting to MC

Is it possible you're filtering synthetic key events?


bob:

--- Quote from: RemyJ on January 05, 2018, 09:42:22 am ---Nope, doesn't work.  xdotool uses the names without the XK or XKB prefix

--- Code: ---xdotool search --limit 1 --class "Media_Center_23" key Up

--- End code ---
results in nothing happening in MC.


--- Code: ---xdotool search --limit 1 --class "Media_Center_23" key XF86AudioNext

--- End code ---
does work so I know xdotool is getting to MC

Is it possible you're filtering synthetic key events?

--- End quote ---
Found the issue. Not sure how to fix it yet.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version