Portál AbcLinuxu, 5. května 2025 21:39
KeyPress event, serial 34, synthetic NO, window 0x3a00001, root 0x5d5, subw 0x0, time 47701405, (244,-80), root:(795,230), state 0x10, keycode 84 (keysym 0xffb5, KP_5), same_screen YES, XLookupString gives 1 bytes: (35) "5" XmbLookupString gives 1 bytes: (35) "5" XFilterEvent returns: Falsea pravá klávesa
KeyPress event, serial 37, synthetic NO, window 0x3a00001, root 0x5d5, subw 0x0, time 47835016, (244,-80), root:(795,230), state 0x10, keycode 135 (keysym 0xff67, Menu), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: FalseDotaz: Lze v Xorg / xinput nějak jednoduše (za pomoci standardních nástrojů / konfiguračních souborů) přemapovat tu klávesu na stisknutí tlačítka myši? Xinput hierarchie vypadá takto:
⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ HTIX5288:00 0911:5288 Mouse id=14 [slave pointer (2)] ⎜ ↳ Goodix Capacitive TouchScreen id=13 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Video Bus id=6 [slave keyboard (3)] ↳ Power Button id=7 [slave keyboard (3)] ↳ sof-essx8336 Headset id=8 [slave keyboard (3)] ↳ Intel HID events id=15 [slave keyboard (3)] ↳ Intel HID 5 button array id=16 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=17 [slave keyboard (3)] ↳ Goodix Capacitive TouchScreen id=19 [slave keyboard (3)]Díky!
Řešení dotazu:
xmodmap -e "keycode 84 = Pointer_Button1" xmodmap -e "keycode 135 = Pointer_Button2"zdroj: https://unix.stackexchange.com/questions/426996/using-capslock-as-left-mouse-button-mostly-works-but-fails-with-a-few-things
xkbset mousekeys
(v mém případě bylo nutno doinstalovat...)
xmodmap -e "keycode 108 = Menu"source
xmodmap -e "keycode 108 = Menu NoSymbol Menu"
Ďakujem za nahodenie
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.