[zshrc] change touchpad command
This commit is contained in:
parent
45b998ed93
commit
56bd5da25b
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue