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 :-) -- derek