From: Jean Louis <bugs@gnu.support>
To: Arthur Miller <arthur.miller@live.com>
Cc: 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:40:09 +0300 [thread overview]
Message-ID: <YGQLOQAI8uEyugOz@protected.localdomain> (raw)
In-Reply-To: <AM9PR09MB497768BACA442F2D4FAE13DF967C9@AM9PR09MB4977.eurprd09.prod.outlook.com>
* 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.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
next prev parent reply other threads:[~2021-03-31 5:40 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 [this message]
2021-03-31 6:05 ` Arthur Miller
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=YGQLOQAI8uEyugOz@protected.localdomain \
--to=bugs@gnu.support \
--cc=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).