diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-20 23:46:53 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-20 23:46:53 +0100 |
| commit | 22fb4594ec830f0072e9f0b45bac3a5f19897987 (patch) | |
| tree | 08193e59edf0c883f8ea72e0fe64a627b4d6f36f /bin/touchpad-toggle | |
| parent | d4a917623ce4a8dc7e4feb2fa50407d33eb6c36f (diff) | |
| download | dotfiles-22fb4594ec830f0072e9f0b45bac3a5f19897987.tar.gz dotfiles-22fb4594ec830f0072e9f0b45bac3a5f19897987.tar.bz2 dotfiles-22fb4594ec830f0072e9f0b45bac3a5f19897987.zip | |
Switching back to solarized (weird bug when openning file with autocmd, takes 2/3 seconds), Added qutebrowser larouse search engine and blocking 3rd party cookies
Diffstat (limited to 'bin/touchpad-toggle')
| -rwxr-xr-x | bin/touchpad-toggle | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/touchpad-toggle b/bin/touchpad-toggle index f0a86a1..e4dc959 100755 --- a/bin/touchpad-toggle +++ b/bin/touchpad-toggle @@ -4,6 +4,9 @@ touchpad_name='ETPS/2 Elantech Touchpad' active="$(xinput list-props "$touchpad_name" | grep 'Device Enabled' | cut -f 3)" -[ "$active" -eq 1 ] && - xinput disable "$touchpad_name" || +if [ "$active" -eq 1 ] +then + xinput disable "$touchpad_name" +else xinput enable "$touchpad_name" +fi |
