You are not logged in.

#1 2017-03-07 08:04:32

xb3
New Member
Registered: 2017-03-07
Posts: 4

Troubles with setting up the configuration file ~/.xinitrc

I use BunsenLabs Linux Hydrogen.

1) I want to change mouse settings in ~/.xinitrc as described here.

So I created the file .xinitrc in home directory and appended commands for mouse.

#!/bin/sh

# /etc/X11/xinit/xinitrc
#
# global xinitrc file, used by all X sessions started by xinit (startx)

# invoke global X session script
. /etc/X11/Xsession

/usr/bin/xinput --set-prop 9 'Device Accel Constant Deceleration' 1.3 &
/usr/bin/xset m 1/1 0

But it doesn't work.
Where is my mistake?

2) And the second question: how to change wheel scroll speed?
I tried to change "Evdev Scrolling Distance" property. But I didn't find suitable values like this guy stackexchange.com

thank you for your attention :-)

Offline

#2 2017-03-07 08:18:10

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Troubles with setting up the configuration file ~/.xinitrc

BunsenLabs doesn't use ~/.xinitrc

You should instead add the last two lines to ~/.config/openbox/autostart

There is no need to source /etc/X11/Xsession as LightDM already does this wink

how to change wheel scroll speed?

Edit the file at ~/.config/openbox/autostart and change this line:

synclient VertEdgeScroll=1 HorizEdgeScroll=1 TapButton1=1 2>/dev/null

https://github.com/BunsenLabs/bunsen-co … ostart#L42

You need to add a VertScrollDelta parameter, the stock value is 50, to make it scroll faster you need to decrease this value and vice versa.

So if you wanted to scroll twice as fast, change the line to:

synclient VertEdgeScroll=1 VertScrollDelta=25 HorizEdgeScroll=1 TapButton1=1 2>/dev/null

For more on these parameters, read

man synaptics synclient

EDIT: I think this only works for touchpads, see damo's reply below for the correct solution.

Last edited by Head_on_a_Stick (2017-03-07 08:39:36)

Offline

#3 2017-03-07 08:18:35

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: Troubles with setting up the configuration file ~/.xinitrc

`xset`can be used to configure the mouse speed, buttons etc

man xset

Get current settings:
xset -q

Example:
xset m speed 1 accel 1

These settings can be added to your autostart, instead of trying to use .xinitrc

There is some configuration available in the Openbox GUI config ( Preferences -> Openbox -> GUI Config tool -> Mouse);

Also see `man synclient`

EDIT: ninjad by @HoaS, as usual wink

Last edited by damo (2017-03-07 08:19:29)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#4 2017-03-07 08:38:42

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Troubles with setting up the configuration file ~/.xinitrc

^ Actually, I think that your answer is correct — my reply works for a touchpad but I'm not sure about a mousewheel...

hmm

Offline

#5 2017-03-07 09:00:48

xb3
New Member
Registered: 2017-03-07
Posts: 4

Re: Troubles with setting up the configuration file ~/.xinitrc

Head_on_a_Stick, damo thanks a lot for attention!
I have tried your advice Head_on_a_Stick. My commands for mouse now working. smile

But wheel scroll is still 3 lines at a time (very low)...

I didn't find nothing about that in `man xset` and `man synclient`

from `man xset`

mouse   The m option controls the mouse parameters; it may be abbreviated
               to  'm'. Of course, it applies to most pointing devices, not just
               mice. The parameters for the pointing device  are  `acceleration'
               and `threshold'. The acceleration can be specified as an integer,
               or as a simple fraction. Threshold is just an integer.  The  set‐
               ting  is  applied  to  all  connected pointing devices. xinput(1)
               should be used if you need device-specific settings.

The parameters for the pointing device  are  `acceleration' and `threshold'
I understand that is all that it can for mouse?..

`man synclient` very poor and I don't understand how to deal with it...

synclient -l
Couldn't find synaptics properties. No synaptics driver loaded?

sad

if it's important: I work on a conventional mouse, no touchpad

Last edited by xb3 (2017-03-07 09:04:50)

Offline

#6 2017-03-07 09:15:31

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,169
Website

Re: Troubles with setting up the configuration file ~/.xinitrc

3 lines at a time sounds like a browser setting. What browser do you use?  Is it like that in all apps, or just Firefox?


I don't care what you do at home. Would you care to explain?

Offline

#7 2017-03-07 09:23:21

xb3
New Member
Registered: 2017-03-07
Posts: 4

Re: Troubles with setting up the configuration file ~/.xinitrc

hhh
I use Chrome.
It is like in all apps.
"3 lines" is a rough assessment of what I see
in terminal it is 4
in Kate it is 3
in default file manager in detailed style it is about 2 lines
and so on... it's everywhere about the same

Offline

#8 2017-03-07 09:26:14

xb3
New Member
Registered: 2017-03-07
Posts: 4

Re: Troubles with setting up the configuration file ~/.xinitrc

guys, how do you set up it for yourself?
or are you satisfied with the default value?

Offline

#9 2017-03-07 20:22:04

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Troubles with setting up the configuration file ~/.xinitrc

xb3 wrote:

are you satisfied with the default value?

^ this smile

xb3 wrote:

I tried to change "Evdev Scrolling Distance" property. But I didn't find suitable values like this guy stackexchange.com

Please post exactly what you tried and the exact error messages.

Offline

Board footer

Powered by FluxBB