You are not logged in.
Pages: 1
Hi all,
I'm trying to enable tap-to-click on my laptop on startup. The command I use is
xinput set-prop 'DLL082A:01 06CB:76AF Touchpad' 'libinput Tapping Enabled' 1and works just fine went run in at terminal.
I added that command in my ~/.xinitrc file:
#!/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
twm &
xinput set-prop 'DLL082A:01 06CB:76AF Touchpad' 'libinput Tapping Enabled' 1
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name loginBut that doesn't work. I still need to input the command in a terminal on startup. Here is my ~/.xsession-errors file.
Am I missing something here? Thank for your help.
Last edited by eichan (2018-01-08 13:03:45)
Offline
If your usual login setup contains of a clock and 3 terminals then that is correct. If you do something else, then whatever you use to start X is not parsing your .xinitrc which doesn't make this surprising. How do you start X?
Offline
I have SDDM as a display manager. It doesn't have three terminals nor a clock. SDDM then starts Plasma.
Offline
And plasma doesn't invoke xinitrc at all.
Place an executable script into ~/.config/plasma-workspace/env and read up things in the wiki rather than whereever you got this idea from.
Offline
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I stopped my reading at the Xinit page and thought it was a good idea to put that xinput line there.
Script in env folder worked. Thanks!
Offline
Pages: 1