fix wandering Dell touchpad in Kubuntu

Alexander Smirnov alexander.v.smirnov at gmail.com
Wed Jul 9 06:22:31 UTC 2008


Derek Broughton пишет:
> Alexander Smirnov wrote:
>
>   
>> #!/bin/bash
>>
>> current=`synclient -l | grep TouchpadOff | awk 'BEGIN{FS="= "}{print $2}'`
>>
>> if [ $current -eq 0 ]; then
>> synclient TouchpadOff=1;
>> else
>> synclient TouchpadOff=0;
>>
>>     
>
> There _must_ be a way to do that in one line :-)
>   
not one line, but shorter than previous version :-)

#!/bin/bash

current=`synclient -l | grep TouchpadOff | awk 'BEGIN{FS="= "}{print $2}'`
synclient TouchpadOff=$(((1+$current)%2));




More information about the kubuntu-users mailing list