Score:1

how do I run a startup script to set my touchpad scroll speed on startup

bj flag

ive tried everything, crontab, setting it from a startup script like xinitrc, using the startup application option and running a script from there. but no matter what i do i always need to manually type sudo xinput set-prop 12 "libinput Scrolling Pixel Distance" 50 in my console on startup to set it to 50 ever new desktop session

please help

nobody avatar
gh flag
Do you really need to do the command with sudo? It should work in a desktop session as user.
Score:0
iq flag

Have you tried creating a systemd service ?

first get the ID of your input device, you can do this by running xinput list

then create a file like /etc/systemd/system/dat_input_scroll_speed.service with your favorite IDE like sudo nano /etc/systemd/dat_input_scroll_speed.service

and put this inside:

[Unit]
Description=Set input configuration on boot

[Service]
Type=simple
ExecStart=/usr/bin/xinput set-prop 14 "libinput Scrolling Pixel Distance" 50

[Install]
WantedBy=multi-user.target

then replace 14 by the id of the device you found earlier, then save the file, then enable this new service at startup with sudo systemctl enable dat_input_scroll_speed.service

Canaan avatar
bj flag
did everything you successfully till sudo systemctl enable input-config.service where then i get this output: Failed to enable unit: Unit file input-config.service does not exist.
Saxtheowl avatar
iq flag
my bad it was sudo systemctl enable dat_input_scroll_speed.service that you had to enter, I edited my answer
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.