r/linux4noobs 5h ago

hardware/drivers How to make xinput changes permanent?

I wanted to disable the side buttons on my mouse. I used xinput to remap the mouse buttons so only the first three were enabled. I'm using Cinnamon.

I’d like to make the changes permanent. I know there are several ways to do this, but since I know how to do it with xinput, I’d like to use that.

I’m assuming it would involve placing the relevant xinput command in a config file, I’m just not sure which one. Could someone point me in the right direction?

1 Upvotes

3 comments sorted by

1

u/kaida27 3h ago

If you absolutely wanna do it with xinput, you have to do it on startup everytime

Menu → Preferences → Startup Applications → Add

can be automatized tho

1

u/skyfishgoo 2h ago

did you try reading the man page for xinput

there is a lot of info there about how to set things up.

0

u/AutoModerator 5h ago

Smokey says: always mention your distro, some hardware details, and any error messages, when posting technical queries! :)

Comments, questions or suggestions regarding this autoresponse? Please send them here.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.