From 22fb4594ec830f0072e9f0b45bac3a5f19897987 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 20 Feb 2021 23:46:53 +0100 Subject: 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 --- bin/touchpad-toggle | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin/touchpad-toggle') 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 -- cgit