Как называется ключ POS1 в xdotool? - PullRequest
0 голосов
/ 23 октября 2018

Мне нужен xdotool, чтобы нажать pos1 , но я не знаю названия этой клавиши.Это не pos1, POS1, Pos1, Beginning.Как я могу найти название ключа, который используется xdotool?

1 Ответ

0 голосов
/ 23 октября 2018

Выполните

$ xev -event keyboard

, а затем просто введите ключ, который хотите использовать.

Пример вывода:

Outer window is 0x4a00001, inner window is 0x4a00002

KeymapNotify event, serial 24, synthetic NO, window 0x0,
    keys:  4294967230 0   0   0   16  0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 25, synthetic NO, window 0x4a00001,
    root 0x1a1, subw 0x0, time 109192145, (501,285), root:(503,393),
    state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x4a00001,
    root 0x1a1, subw 0x0, time 109193882, (501,285), root:(503,393),
    state 0x0, keycode 110 (keysym 0xff50, Home), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x4a00001,
    root 0x1a1, subw 0x0, time 109193953, (501,285), root:(503,393),
    state 0x0, keycode 110 (keysym 0xff50, Home), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
^C

Интересная часть - keycode 110 (keysym 0xff50, Home).Так зовут Home.

...