][eBerg
public text v1 · immutable#!/bin/bash
if [ $# = 1 ]; then
synclient TouchpadOff=$1
else
state=$(synclient -l | grep TouchpadOff | awk -F"= " '{print $2}')
if [ "$state" = "0" ]; then
synclient TouchpadOff=1
else
synclient TouchpadOff=0
fi
fi