After posting my question here, Add xinput to the start up secuence of LXDE
I got no answer so here it is. I have these 2 commands:
xinput --set-prop "Razer Razer DeathAdder" "Device Accel Constant Deceleration" 4
xinput --set-prop "Razer Razer DeathAdder" "Device Accel Velocity Scaling" 1
Which I want to run on start up. I am using zsh shell.
I tried putting these 2 commands /etc/rc.local
, .zshrc
, .zlogin
, also in /etc/xdg/lxsession/Lubuntu/autostart
, also in /.xinitrc
and /etc/X11/xinit/xinitrc
but nothing seems to happen. Could somebody let me know what is going on please, and why none of these is working?
Here is my current /etc/X11/xinit/xinitrc
file (ignore the numbers (vim)):
1 #!/bin/sh
2
3 # /etc/X11/xinit/xinitrc
4 #
5 # global xinitrc file, used by all X sessions started by xinit (startx)
6
7 # invoke global X session script
8 . /etc/X11/Xsession
9
10 /usr/bin/xinput --set-prop "Razer Razer DeathAdder" "Device Accel Constant Deceleration" 4
11 /usr/bin/xinput --set-prop "Razer Razer DeathAdder" "Device Accel Velocity Scaling" 1
Could somebody explain to me what is goign on ? Why nothing is happening? I tried everything, rebooted, and the $%^&* commands will just not run.
Any help please?