![]() |
Item - Request - Touchpad disable script inclusion. - Printable Version +- Linux Lite Forums (https://www.linuxliteos.com/forums) +-- Forum: General (https://www.linuxliteos.com/forums/forumdisplay.php?fid=4) +--- Forum: Suggestions and Feedback (https://www.linuxliteos.com/forums/forumdisplay.php?fid=13) +--- Thread: Item - Request - Touchpad disable script inclusion. (/showthread.php?tid=1863) |
Item - Request - Touchpad disable script inclusion. - sysdrum - 05-27-2015 I have a simple synaptic touchpad script that disables and re-enables the touchpad given a key press for those who would like to have more control when typing on some laptops. I would like to have it included in the scripts folder and maybe a note about it. I know that under the mouse and touchpad settings you can enable and disable plus set a delay when typing but sometimes that is not usable. For those using a usb mouse a quick key option would be nice so that they can turn it on and off without having to use the menu. It is a simple yet nice feature that other distros don't have. It is on my github. I can post it here for review. Re: Item - Request - Touchpad disable script inclusion. - anon222 - 05-27-2015 [pre]Good idea https://help.ubuntu.com/community/SynapticsTouchpad/ShortcutKey [/pre] Re: Item - Request - Touchpad disable script inclusion. - sysdrum - 05-28-2015 The script does not require any outside system configuration other than being added to the script folder and a hot added to xfce4. Which could be made update option. https://github.com/sysdrum/rockerwell-pdr/ Re: Item - Request - Touchpad disable script inclusion. - anon222 - 05-28-2015 It's very similar to this script https://help.ubuntu.com/community/SynapticsTouchpad/ShortcutKey#Bash_Script I like your idea on notify-send Code: #!/bin/bash xinput version here Code: #!/bin/bash Re: Item - Request - Touchpad disable script inclusion. - sysdrum - 05-28-2015 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 |