fix wandering Dell touchpad in Kubuntu

Mike Shaw mdshaw89 at gmail.com
Wed Jul 9 13:17:08 UTC 2008


On Wed, Jul 9, 2008 at 8:24 AM, Derek Broughton <news at pointerstop.ca> wrote:

> Alexander Smirnov wrote:
>
> > 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));
> >
>
> There you go then:
>
> synclient TouchpadOff=$(((1+$(synclient -l | grep TouchpadOff |
> awk 'BEGIN{FS="= "}{print $2}'))%2))
>
> (all, of course, on one line)
>
> Now, why did I want to do that????
> --
> derek
>
>
I missed the original post, but what is the model type of the Dell.  I'm
curious because I have an Inspiron 4000 that had a similar problem.

l8r,

Mike
-- 
Ed: He's worse than when he was just stupid! - from "Sitting Ducks"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kubuntu-users/attachments/20080709/a8b61aca/attachment.html>


More information about the kubuntu-users mailing list