You are not logged in.

#1 2021-09-03 06:27:52

peonerovv
Member
Registered: 2021-08-11
Posts: 34

When and how should I run my scripts on autostart?

Hi

Right now I have to write a comment in a terminal each time I reboot my system, that specifies the desired mouse speed. I wanted to know at which point should the script for it must be executed and how that script would look like. Would also be nice to know why it is the way it is, but it's not necessary.

I'm using dwm with X.
The command I use now is "xinput set-prop 11 326 -0.55"

Thanks for help.

Offline

#2 2021-09-03 06:39:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: When and how should I run my scripts on autostart?

Put it in your .xinitrc, or create a conf file for it https://wiki.archlinux.org/title/Libinp … ation_file


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-09-03 09:00:20

solskog
Member
Registered: 2020-09-05
Posts: 462

Re: When and how should I run my scripts on autostart?

You can also create a X11 config file for your input device/mouse

# cat /etc/X11/xorg.conf.d/10-mouse.conf
section "InputClass"
    Identifier "Mouse"
    MatchProduct "Logitech USB "
    Driver "libinput"
    Option "ScrollMethod"  "button"
    Option "AccelerationNumerator" "9"
    Option "AccelerationDenominator" "1"
    Option "AccelerationThreshold" "0"
EndSection

Offline

Board footer

Powered by FluxBB