Home > FAQ Gnu Linux > Gestion touchpad sous mon t400 lenovo
Gestion touchpad sous mon t400 lenovo PDF Imprimer Envoyer
Note des utilisateurs: / 0
MauvaisTrès bien 
Section Grégory
Écrit par Greg   
Dimanche, 05 Juin 2011 12:01

dans /usr/sbin/touchpad.sh

#!/bin/bash
# synclient -l
# synclient TouchpadOff=0
CdeEtatTouchpad="/usr/bin/synclient -l "

EtatTouchpad=$($CdeEtatTouchpad | /bin/grep TouchpadOff)
set  $EtatTouchpad
EtatTouchpad=$3
echo "etat du touchpad=$EtatTouchpad."
case $EtatTouchpad in
0)
logger -t $0 "desactivation touchpad ..."
synclient TouchpadOff=1
;;
1)
logger -t $0 "activation touchpad ..."
synclient TouchpadOff=0
;;
*)
logger -t $0 "etat inconnu du touchpad .... activation"
synclient TouchpadOff=0
;;
esac

dans le ~/.xbindkeysrc

#touche fn+touchpad : fonction bascule active ou desactive
"/usr/sbin/touchpad.sh"
m:0x0 + c:199
NoSymbol

 
 

Sondage

Ce portail
 

1ere Tit news

Lire la suite...