Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 12776  / 2 Years ago, tue, october 18, 2022, 6:47:08

I added this script to my startup programs to change my touchpad settings on startup:



synclient TapButton2=2 TapButton3=3


But this settings don't stay this way after startup.



I changed my script to watch the results:



synclient TapButton2=2 TapButton3=3
synclient | grep TapButton > $HOME/tmp/touchpad.txt


Results were confusing, touchpad still didn't work the way I want:



$ cat ~/tmp/touchpad.txt
TapButton1 = 1
TapButton2 = 2
TapButton3 = 3


But when I ran synclient | grep TapButton in gnome-terminal after startup the output was:



$ synclient | grep TapButton
TapButton1 = 1
TapButton2 = 3
TapButton3 = 0


I tried adding delays (sleep 10s) to my script before and/or after every line, but this didn't help too.



Therefore I assume that there is another program, script or daemon that changes touchpad settings, but I couldn't find which one.



Two questions:




  • Which program, script or daemon can change touchpad settings?

  • Is there another way to permanently change your touchpad settings? Maybe adding such script to startup is not supposed to be working.



Update



I tried putting



Section "InputClass"
Identifier "touchpad my settings"
MatchIsTouchpad "on"
MatchOS "Linux"
MatchDevicePath "/dev/input/mouse*"
Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"
Option "PalmDetect" "on"
EndSection


into file /usr/share/X11/xorg.conf.d/99-my.conf. It didn't help as well.


More From » touchpad

 Answers
6

Very bad, but working solution to my problem:



Adding this script to startup programs:



#!/bin/bash

while true;
do
synclient TapButton2=2 TapButton3=3
synclient | grep Tap > $HOME/tmp/touchpad.txt
sleep 20s
done

[#28258] Wednesday, October 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ickump

Total Points: 234
Total Questions: 124
Total Answers: 111

Location: Jordan
Member since Fri, Apr 8, 2022
2 Years ago
;