From: Arthur Miller <arthur.miller@live.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Best strategy to disable a touchpad on a laptop when in Emacs?
Date: Wed, 31 Mar 2021 08:05:54 +0200 [thread overview]
Message-ID: <AM9PR09MB49778A87255C8403C913CCC8967C9@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <YGQLOQAI8uEyugOz@protected.localdomain> (Jean Louis's message of "Wed, 31 Mar 2021 08:40:09 +0300")
Jean Louis <bugs@gnu.support> writes:
> * Arthur Miller <arthur.miller@live.com> [2021-03-31 08:24]:
>> > Some solutions are shown here:
>> > https://askubuntu.com/questions/886092/how-do-i-disable-the-touchpad-while-typing
>> >
>> > First tell what operating system do you use, and if you use X.org or
>> > what? As solutions vary depending of the environment.
>>
>> Forgott to say: if I got it to work via Emacs, it would be OS independent.
>
> Find a way to disable touchpad on command line in Windows, and make
> equivalent to this function below. Do you have such solution?
>
> (defun touchpad-toggle ()
> (interactive)
> (if touchpad-toggle
> (progn
> (setq touchpad-toggle nil)
> (shell-command "xinput disable 11")
> (message "Touchpad disabled"))
> (progn
> (setq touchpad-toggle t)
> (shell-command "xinput enable 11")
> (message "Touchpad enabled"))))
>
> Then you add some hook or process to monitor 2 seconds or more after
> typing that it remains disabled.
I know how to call a shell command from Emacs Jean. I don't want to turn
off and on the touchpad every time I borrow the computer. I will sooner
or later forgett it and the best of all best ladies will be annoyed why
her computer does not work any more :). I just want it to now work in
Emacs, not in other apps. I found disable-mouse by Purcell, I'll see how
that one works.
next prev parent reply other threads:[~2021-03-31 6:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-31 0:40 Best strategy to disable a touchpad on a laptop when in Emacs? Arthur Miller
2021-03-31 5:11 ` Jean Louis
2021-03-31 5:22 ` Arthur Miller
2021-03-31 5:23 ` Arthur Miller
2021-03-31 5:40 ` Jean Louis
2021-03-31 6:05 ` Arthur Miller [this message]
2021-03-31 6:25 ` Arthur Miller
2021-03-31 6:55 ` Jean Louis
2021-03-31 10:33 ` Arthur Miller
2021-03-31 10:36 ` Jean Louis
2021-03-31 12:34 ` Arthur Miller
2021-03-31 8:32 ` Yuri Khan
2021-03-31 10:31 ` Arthur Miller
2021-03-31 10:34 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM9PR09MB49778A87255C8403C913CCC8967C9@AM9PR09MB4977.eurprd09.prod.outlook.com \
--to=arthur.miller@live.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).