Koupil jsem si prilis komplikovanou mys. 11 tlacitek celkem. Bohuzel funkcnost v linuxu je takova zvlastni. Novy evdev driver vsechna tlacitka pozna a umozni vyuzivat, ale s ostatnimi palikacemi je to trosku slozitejsi (naprosto nechapu kde je zakopany pes).K vyreseni tohoto problemu tu mame xev, xbindkeys, xmacroplay.
xev..ukaze po zmacknuti kod klavesy a vsechny veci s tim souvesijici (napriklad zda je klavesa detekovana)
xbindkeys..umozni po stisknuti urcite kombinace klaves spustit libovolny program
xmacroplay..umoznuje poslat klavesu nebo kombinaci klaves xservru
Spusteni xbindkeys v povidacim modu
xbindkeys -n -v
Muj .xbindkeysrc zatim spis prvni pokus.
# Control + mouse button 1 starts an xterm
# "xterm"
# Control + b:13
# Mappings for keys for MX Revo
# b:1 - left mouse button
# b:2 - left and right mouse button together
# b:3 - right mouse button
# b:4 - mouse wheel up
# b:5 - mouse wheel down
# b:6 - mouse wheel left
# b:7 - mouse wheel right
# b:8 - back button
# b:9 - forward button
# b:10 - -none-
# b:11 - -none-
# b:12 - -none-
# b:13 - media wheel up
# b:14 - -none-
# b:15 - media wheel down
# b:16 - media wheel press
# b:17 - -none-
"echo 'KeyStrPress KP_1 KeyStrRelease KP_1'| xmacroplay :0"
b:6
"echo 'KeyStrPress KP_2 KeyStrRelease KP_2' | xmacroplay :0"
b:7
"echo 'KeyStrPress KP_3 KeyStrRelease KP_3'| xmacroplay :0"
b:8
"echo 'KeyStrPress KP_4 KeyStrRelease KP_4' | xmacroplay :0"
b:9
"echo 'KeyStrPress KP_5 KeyStrRelease KP_5'| xmacroplay :0"
b:13
"echo 'KeyStrPress KP_6 KeyStrRelease KP_6' | xmacroplay :0"
b:15
"echo 'KeyStrPress KP_7 KeyStrRelease KP_7'| xmacroplay :0"
b:16
# "echo 'KeyStrPress KP_8 KeyStrRelease KP_8'| xmacroplay :0"
# c:0x1008ff1b
# Mapping for mousewheel right
#"echo 'KeyStrPress Control_L KeyStrPress Shift_L KeyStrPress Tab KeyStrRelease Tab KeyStrRelease Shift_L KeyStrRelease Control_L'| xmacroplay :0"
#b:6
#“echo 'KeyStrPress Control_L KeyStrPress Tab KeyStrRelease Tab KeyStrRelease Control_L' | xmacroplay :0″
#b:7
# Mappings for media wheel
#“echo 'KeyStrPress Control_L KeyStrPress t KeyStrRelease t KeyStrRelease Control_L' | xmacroplay :0″
#b:13
#“echo 'KeyStrPress Control_L KeyStrPress w KeyStrRelease w KeyStrRelease Control_L' | xmacroplay :0″
#b:15
#“echo 'KeyStrPress Alt_L KeyStrPress F9 KeyStrRelease F9 KeyStrRelease Alt_L' | xmacroplay :0″
#b:17
# Mappings for middle button
#“echo 'ButtonPress 2 ButtonRelease 2' | xmacroplay :0″
#c:0xE1