Portál AbcLinuxu, 20. prosince 2025 18:31
| Ovladač: | v jádře |
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "6 7"
Option "Buttons" "7"
Option "Emulate3Buttons" "off"
EndSection
Section "ServerLayout"
...
InputDevice "Mouse1" "CorePointer"
...
EndSection
Pri startu Xek je nutne premapovat tlacitka, pak vam budou bocni tlacitka fungovat jako horizontalni scroll. Prikaz je vhodne umistit do nejakeho souboru, co se spousti pri startu Xek, ja v KDEckach jsem to nakonec dal do ~/.kde/Autostart/mouse.sh:
#!/bin/sh xmodmap -e "pointer = 1 2 3 7 6 4 5"Pokud chcete pomoci bocnich tlacitek napr. prepinat plochy, doinstalujte si imwheel, doporucuju verzi >= 1.0.0pre12, stabilni verze 0.9.9 postrada potrebny parametr -r. Imwheel pak spoustejte ze stejneho souboru jako xmodmap. Plochy prepinam pomoci Win+Left, Win+Right, pro okno na dalsi/predchozi plochu pridavam Shift. V KDE mam klavesu Meta namapovanu na Win. Misto prepinani ploch si muzete namapovat treba Dopredu/Zpet v browseru nebo kopirovat/vlozit.
imwheel -krb 0067muj ~/.imwheelrc:
"\(root\)" None,Left,Meta_L|Left None,Right,Meta_R|Right Shift_L,Left,Meta_L|Shift_L|Left Shift_L,Right,Meta_R|Shift_L|Right Shift_R,Left,Meta_L|Shift_L|Left Shift_R,Right,Meta_R|Shift_L|Right
".*" None,Left,Meta_L|Left None,Right,Meta_R|Right Shift_L,Left,Meta_L|Shift_L|Left Shift_L,Right,Meta_R|Shift_L|Right Shift_R,Left,Meta_L|Shift_L|Left Shift_R,Right,Meta_R|Shift_L|Right
Dokument vytvořil: digri, 7.9.2004 13:46 | Zobrazeno: 1351×
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.