shortcut keys - Enable/disable touchpad - Ask Ubuntu


i managed install ubuntu 16.04 on asus ux501 vw, of shortcut not working. i'm not looking fix them all, 1 : shortcut allow me enable or disable touchpad, can write long documents working touchpad.

i tried find on google got nothing.

can explain me how fix please? !

i created bash script negusp's answer. finds , toggles touchpad device. can configure custom shortcut in system settings.

#!/bin/bash  read tpdevice <<< $( xinput | sed -nre '/touchpad/s/.*id=([0-9]*).*/\1/p' ) state=$( xinput list-props "$tpdevice" | grep "device enabled" | grep -o "[01]$" )  if [ "$state" -eq '1' ];then     xinput --disable "$tpdevice" else     xinput --enable "$tpdevice" fi 

i'm setting ctrl+shift+f9 toggle touchpad enable , disable this:

enter image description here


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User