LINUX LITE 7.4 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Item - Request - Touchpad disable script inclusion.
#5
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
Reply


Messages In This Thread
Re: Item - Request - Touchpad disable script inclusion. - by sysdrum - 05-28-2015, 03:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)