#1 Le 17/12/2016, à 19:20
- sev31
Clavier SpaceFn : "At Home Modifier" pour remplacer TouchCursor
D'abord bonjour.
Je poste rapidement, j'ai épuisé tout mon crédit temps, mais je promets de me présenter en janvier 2017.
En résumé : J'ai l'habitude d'utiliser le logiciel TouchCursor sous Windows.
Ce logiciel open-source permet en gros d'utiliser la touche espace comme une touche de fonction.
espace + i = haut
espace + j = gauche
espace + l = droite
espace + k = bas
espace + p = supprimer
espace + ; = delete
etc...
Plus besoin de décoller les mains du clavier, et donc plus besoin de regarder le clavier : on peut enfin taper à dix doigts tranquillement.
Mais avec une image et une vidéo, ce sera plus clair : http://martin-stone.github.io/touchcursor/ et https://www.youtube.com/watch?v=3w2Bf5EXdJA
Le problème c'est que l'équivalent sous Linux est nettement moins facile à configurer ;-)
Pas d'interface graphique. Je suis prêt à me lancer mais je ne sais pas par où commencer.
Le site est ici
https://gitlab.com/at-home-modifier/at- … wikis/home
J'ai fait :
sudo add-apt-repository ppa:yurivkhan/ahm
sudo apt-get update
sudo apt-get install xserver-xorg-input-evdev
Puis je me suis dit qu'il fallait que je lance le machin en tapant
xserver-xorg-input-evdev
mais ça ne donne rien (command not found)
Pas grave, je dois configurer d'abord. Voyons la lecture du readme :
https://gitlab.com/at-home-modifier/at- … wikis/home
Usage
=====
First, know the keycodes you need, which are numbers assigned to each
physical key. It's easiest to invoke "xmodmap -pk" or "xev" commands. In my
case it says space is 65, and left shift is 50. OK. (See below for
complicated cases.) Then write your xorg.conf or
xorg.conf.d/10-keyboard.conf:
# For the details see "man xorg.conf" or your distro doc.
Section "InputClass"
Identifier "my keyboard" # You can name this arbitrarily
Driver "evdev"
Option "XKBOptions" "terminate:ctrl_alt_bksp" # and so on
# If you save this file under xorg.conf.d/ :
Option "AutoServerLayout" "on"
MatchIsKeyboard "on"
# If you have multiple keyboards, you want something like one of them:
# MatchProduct "AT Translated Set 2 keyboard"
# MatchUSBID "0566:3029"
# Name is found in Xorg log, following the message "Adding input device"
# or by
# $ cat /proc/bus/input/devices
### at-home-modifier options begin here.
# The basic option.
Option "TransMod" "65:50 102:241" # Defines key/modifier pairs.
## Fine tuning options. Explained in a later section.
# For the first time, omit them.
# Option "AhmTimeout" "400" # In millisecond.
# Option "AhmDelay" "65 102" # Delayed keys. Seperate by spaces.
# Option "AhmFreezeTT" "true"
# Option "AhmResetTime" "10" # In sec.
# Option "AhmPaddingInterval" "10" # In millisecond.
EndSection
If you want to specify multiple pairs for TransMod, separate them with
whitespaces, like this:
Option "TransMod" "65:240 102:241 100:241"
Don't forget to restart X!
Notice that the modifier keys should come to the second of pairs.
Options recognized by at-home-modifier (in fact, by any X drivers)
are printed to X log, typically /var/log/Xorg.0.log, like this:
[ 50.579] (**) Option "AhmTimeout" "400"
Mais quand je tape : man xorg.conf
J'obtiens : No manual entry for xorg.conf
Je continuerai à chercher la prochaine fois. Je vous tiens au courant au cas où d'autres personnes sont intéressées.
Je commencerai par lire cette doc : https://doc.ubuntu-fr.org/xorg
On y trouve le paragraphe concerné.
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "fr" # "fr-oss" pour Feisty et +
Option "XkbVariant" "latin9"
EndSection
Dernière modification par sev31 (Le 17/12/2016, à 19:47)
Hors ligne