Created
August 13, 2012 12:55
-
-
Save jney/3340401 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
my $device_id = $ARGV[0]; | |
`xinput list-props ${device_id}` =~ /Synaptics Off \((\d+)\).*(\d)/; | |
my $param_id = $1; | |
my $param_status = abs($2 - 1); | |
system("xinput", "set-prop", $device_id, $param_id, $param_status); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment