Skip to content

Possible to run xinput changes upon login?

Hi there,

I've spent my day trying to migrate from Neon to Arch+i3. It's been a huge headache, but that was expected. Alright- so I found some commands to enable 2/3 finger clicking, tap-to-click, and natural scrolling that are in the format of "xinput set-prop stuff". I apparently have to run this every time I log in. I was thinking of having i3 execute a bash script with the commands I aforementioned, but figured that there's probably a smarter way to do this with a dotfile. Am I correct? Can I enable these touchpad parameters this way?

Also, I do already have libinput-gestures through an exec in the bottom of my i3 .config.

3 points8 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
a9ug91

Author

14
posts
89
comments
3
media
View profile

8 comments

~/.xprofile is supported by many display managers, if yours doesn't, or if you don't use a display manager, you're probably best off leaving it in your i3 config

1 points

Hm. I added my commands to the .xprofile and it didn't seem to do anything upon restart. I then added an exec to a .sh containing the startup commands to my i3 config and it didn't seem change anything either (running the commands in the command line still works). I feel like I'm going crazy, as the i3 thing should have worked.

1 points

How are you launching X? Using xinit, I put all my custom xinput settings in ~/.xinitrc and they load just fine. From experience, the same xinput settings in my i3 config file do nothing.

1 points

So I tried something, and I'm not sure if this is entirely "correct:"

Place my three xinput commands at the start of my ~/.xinitrc, and then run my exec i3 after. This works. Is this how you'd do it?

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.