mirror of
https://github.com/GRFreire/scripts.git
synced 2026-03-06 03:09:41 +00:00
restart-touchpad: add notification
This commit is contained in:
parent
2ff33939d2
commit
1d3212efec
@ -3,6 +3,7 @@
|
||||
id="$(xinput list | grep Touchpad | cut -f 2 | sed 's/id=//')"
|
||||
|
||||
xinput disable "$id"
|
||||
sleep 1
|
||||
xinput enable "$id"
|
||||
|
||||
# $1 prop name
|
||||
@ -22,3 +23,7 @@ xinput set-prop "$id" "$prop" 1, 1, 1, 2, 1, 3
|
||||
# Enable Horizontal and Vertical Two-Finger scrolling
|
||||
prop="$(get_prop 'Synaptics Two-Finger Scrolling')"
|
||||
xinput set-prop "$id" "$prop" 1, 1
|
||||
|
||||
if [ "$1" = "--notify" ]; then
|
||||
notify-send -u "low" --icon="input-touchpad" "Restarting touchpad"
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user