almikul
January 12th, 2012, 08:40 PM
Hi,
I apologise if this thread is in a wrong forum section. I would like to ask for a quick example of how to write a script that would toggle the touchpad between on and off states. I can do it manually using
xinput set-prop "ImPS/2 ALPS GlidePoint" "Device Enabled" 0
However, I would like the script to see what the value of "Device Enabled" is and invert it, thus achieving the toggling function. I have had some programming experience in the past, but I am just not sure how to get to this particular variable in this particular device using bash or sh script.
Your inputs would be greatly appreciated :)
I apologise if this thread is in a wrong forum section. I would like to ask for a quick example of how to write a script that would toggle the touchpad between on and off states. I can do it manually using
xinput set-prop "ImPS/2 ALPS GlidePoint" "Device Enabled" 0
However, I would like the script to see what the value of "Device Enabled" is and invert it, thus achieving the toggling function. I have had some programming experience in the past, but I am just not sure how to get to this particular variable in this particular device using bash or sh script.
Your inputs would be greatly appreciated :)