05-28-2015, 03:08 PM
I built the script to work between Ubuntu/Linux Lite/arch/Fedora. So I wanted to limit the requirements so that I could use it as flexible as possible. I also wanted to keep the size super small. I strip the comments out and so that it is super small. For it to work it just uses just a if else.
Code:
#!/bin/bash## Language: bash# Last Change:04/08/15## This shell script enables/disables the touchpad on synaptics driver# Requires libnotify, xfce4-notifyd#if [ $(synclient -l | grep TouchpadOff | awk '{print $3}') == 1 ]; thensynclient TouchpadOff=0;notify-send "Touchpad enabled";elsesynclient TouchpadOff=1;notify-send "Touchpad disabled";#fi## A shortcut to this script can be assigned to enable Fn key functionality