Skip to content

Commit

Permalink
Fix some lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lindhe committed Jul 30, 2023
1 parent 1fd89ed commit 8e5150d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions toggle_touchpad.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
ID=$(xinput --list --id-only 'SynPS/2 Synaptics TouchPad')
ENABLED=$(xinput --list-props $ID | grep 'Device Enabled' | awk '{print substr($0,length,1)}')
ENABLED=$(xinput --list-props "${ID}" | grep 'Device Enabled' | awk '{print substr($0,length,1)}')

if [ "$ENABLED" = "1" ]; then
xinput --disable $ID
xinput --disable "${ID}"
else
xinput --enable $ID
xinput --enable "${ID}"
fi;

0 comments on commit 8e5150d

Please sign in to comment.