Y
Y
Yaroslav2014-12-17 07:09:11
linux
Yaroslav, 2014-12-17 07:09:11

How to save xinput settings when idle?

When logging into the system, the following script is launched:

#!/bin/bash
nova_mouse_id=$(xinput list | grep pointer | grep NOVA | grep -o [0-9][0-9])
xinput set-prop $nova_mouse_id 'Evdev Wheel Emulation' 1
xinput set-prop $nova_mouse_id 'Evdev Wheel Emulation Axes' 6 7 4 5
xinput set-prop $nova_mouse_id 'Evdev Wheel Emulation Button' 3

In it, I find the id of my manipulator and set the emulation of the video to the right mouse button - this is very convenient for surfing and you quickly get used to it.
The chagrin is that if the car stays locked overnight, these settings are reset to default and I have to manually run this script again.
Why does this happen and how to avoid it?
OS: Linux Mint 17.1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Borovikov, 2014-12-19
@CrusaderX

When logging into the system, the following script is launched: - Where exactly did you put the launch of this script?
Adding these lines to the profile is not suitable?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question