[zshrc] change touchpad command
This commit is contained in:
parent
45b998ed93
commit
56bd5da25b
|
@ -47,12 +47,12 @@ transfer() {
|
||||||
function touchpad() {
|
function touchpad() {
|
||||||
touchpad="SynPS/2 Synaptics TouchPad"
|
touchpad="SynPS/2 Synaptics TouchPad"
|
||||||
if [[ $1 == "disable" ]];then
|
if [[ $1 == "disable" ]];then
|
||||||
xinput disable "$touchpad"
|
xinput --set-prop "$touchpad" "libinput Send Events Mode Enabled" 1 1
|
||||||
notify-send "Touchpad" "Disabled" -i ~/.local/share/icons/Paper/48x48/notifications/notification-touchpad-disabled-symbolic.svg
|
notify-send "Touchpad" "Disabled"
|
||||||
|
|
||||||
else
|
else
|
||||||
xinput enable "$touchpad"
|
xinput --set-prop "$touchpad" "libinput Send Events Mode Enabled" 0 0
|
||||||
notify-send "Touchpad" "Enabled" -i ~/.local/share/icons/Paper/48x48/notifications/notification-input-touchpad-symbolic.svg
|
notify-send "Touchpad" "Enabled"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue