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 }