You are not logged in.

#1 2018-01-08 12:15:53

eichan
Member
Registered: 2018-01-08
Posts: 31

[solved] .xinitrc ignores xinput command

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' 1

and 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 login

But 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

#2 2018-01-08 12:23:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [solved] .xinitrc ignores xinput command

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

#3 2018-01-08 12:36:45

eichan
Member
Registered: 2018-01-08
Posts: 31

Re: [solved] .xinitrc ignores xinput command

I have SDDM as a display manager. It doesn't have three terminals nor a clock. SDDM then starts Plasma.

Offline

#4 2018-01-08 12:50:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,863

Re: [solved] .xinitrc ignores xinput command

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

#5 2018-01-08 12:51:07

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [solved] .xinitrc ignores xinput command


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2018-01-08 13:03:13

eichan
Member
Registered: 2018-01-08
Posts: 31

Re: [solved] .xinitrc ignores xinput command

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

Board footer

Powered by FluxBB