From 56bd5da25bac08068256bd01a705c5ffc0e79668 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 10 Oct 2018 15:37:04 +0000 Subject: [PATCH] [zshrc] change touchpad command --- home/.zshrc.local | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/home/.zshrc.local b/home/.zshrc.local index b87d524..336b546 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -47,12 +47,12 @@ transfer() { function touchpad() { touchpad="SynPS/2 Synaptics TouchPad" if [[ $1 == "disable" ]];then - xinput disable "$touchpad" - notify-send "Touchpad" "Disabled" -i ~/.local/share/icons/Paper/48x48/notifications/notification-touchpad-disabled-symbolic.svg + xinput --set-prop "$touchpad" "libinput Send Events Mode Enabled" 1 1 + notify-send "Touchpad" "Disabled" else - xinput enable "$touchpad" - notify-send "Touchpad" "Enabled" -i ~/.local/share/icons/Paper/48x48/notifications/notification-input-touchpad-symbolic.svg + xinput --set-prop "$touchpad" "libinput Send Events Mode Enabled" 0 0 + notify-send "Touchpad" "Enabled" fi }