You are not logged in.
Good morning to everyone,
I noticed that after upgrading some packages with Pacman Natural scrolling is suddenly enabled. I checked the settings in my desktop environment and it seems to be disabled (I use Gnome). However when I run:
xinput list-props 9output includes
libinput Natural Scrolling Enabled (293): 1Now, this is an unexpected change of defaults somewhere (I would like to know how this happened, but ok). Anyway, I don't really like natural scrolling, so I immediately disabled it.
If I run this command from terminal:
xinput set-prop "ImPS/2 BYD TouchPad" "libinput Natural Scrolling Enabled" 0 the problem is corrected.
Anyway, I am really having problems making this command persistent. After reading Arch wiki I decided to add the command line to xinitrc:
!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
xinput set-prop "ImPS/2 BYD TouchPad" "libinput Natural Scrolling Enabled" 0
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name loginbut this seems to be ignored. Did I make any particular mistake or is there some gnome way to do this?
Last edited by gkun (2016-06-11 11:15:53)
Offline
Gnome doesn't read ~/.xinitrc
The wiki page will have the details, but from memory it reads ~/.xsession. Check to be sure.
Offline
Ok, thank you for the hint. Gnome does not indeed read xinitrc and it tends to ignore settings applied with any other scripts. The Arch wiki specific about Gnome pointed me to gsettings commands, which lead me to this:
https://forums.opensuse.org/showthread. … -scrolling
which is exactly my problem.
I solved this with
gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll falseLast edited by gkun (2016-06-11 04:50:08)
Offline
Please mark your thread as [SOLVED]
Offline