trying to disable touchpad in ~/.profile
Tom H
tomh0665 at gmail.com
Mon Sep 25 13:11:14 UTC 2017
On Mon, Sep 25, 2017 at 7:39 AM, Adam Funk <a24061 at ducksburg.com> wrote:
>
> I'm running a current Ubuntu-MATE system. This command
>
> xinput --set-prop 13 'Device Enabled' 0
>
> works from the terminal to disable the touchpad, but it doesn't do
> anything when I put it in ~/.profile, which I expected to be run while
> logging in. Where do I need to put that command for that to happen?
Use "$HOME/.xsessionrc" (nor ".xsession" or ".Xsession").
If you'd like to try a native systemd way, that'll be compatible with
wayland in the future, using "~/.config/systemd/user/", this'll
probably work (this is totally untested; I've never used a systemd
user unit):
[Unit]
Description=disable touchpad
[Service]
ExecStart=/usr/bin/xinput --set-prop 13 'Device Enabled' 0
[Install]
WantedBy=graphical.target
More information about the ubuntu-users
mailing list