Linux:双鼠标 - 具有多个鼠标指针的多个鼠标?

发布于 2024-09-29 02:01:59 字数 1549 浏览 0 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

丢了幸福的猪 2024-10-06 02:01:59

我找到了一种方法来做到这一点,但它会导致 Gnome 的严重撕裂。

  1. 打开终端并输入xinput(所有命令都应以普通用户身份完成)。
    查看其中一只老鼠的 ID。

  2. 然后使用此命令创建一个新的主设备xinput create-master "name"

  3. 现在您只需将其中一只鼠标重新连接到新的主设备xinput reattach "mouse id" "new master id"

请注意,这可以工作,但不实用,至少在 GUI 中正确实现之前是这样。
要恢复此状态,您可能必须盲目执行此操作,但命令如下 xinput reattach "mouse id" "old master id" then xinput remove-master "new master id"< /代码>。

注意:

  • “名称”是指给新主机的名称,任何名称都可以
  • “鼠标ID”是您要附加到新主机的鼠标的ID号
  • “新主机ID”是您创建的新主站的 ID 号
  • “旧主站 ID”是开始时的主站的 ID 号

I've found a way to do it, but it causes major tearing with Gnome.

  1. Open a terminal and type in xinput (all commands should be done as normal user).
    Look at the id of one of your mice.

  2. Then create a new master device with this command xinput create-master "name".

  3. Now you just need to reattach one of your mice to the new master xinput reattach "mouse id" "new master id".

Note this works but is not practical, at least until it's implemented properly in the GUI.
To revert this you will probably have to do it blind, but the commands are as follows xinput reattach "mouse id" "old master id" then xinput remove-master "new master id".

Notes:

  • "name" means the name to give the new master, anything will work
  • "mouse id" is the id number of the mouse you want to attach to the new master
  • "new master id" is the id number of the new master you created
  • "old master id" is the id number of the master that was there to begin with
生生漫 2024-10-06 02:01:59

简单的。使用像 openpie 这样的程序并编写自己的多鼠标脚本(比听起来容易得多,我认为您可以找到预先编写的双鼠标 glovepie 脚本 [只需谷歌“glovepie 双鼠标”)] 注意:您将需要超过一种用于单独鼠标控制的输入方法。

祝你好运,我一次用了 6 只老鼠:)

Easy. Use a program like openpie and write your own multiple mouse script (a lot easier than it sounds, I think you can find a pre-written dual mouse glovepie script [just google 'glovepie dual mouse')] NB: you will need more than one input method for separate mouse control.

Good luck I used 6 mice at once :)

死开点丶别碍眼 2024-10-06 02:01:59

您需要将窗口管理器替换为支持双鼠标的窗口管理器。唯一能做到这一点的是基于icewm 的实验性的。

https://multicursor-wm.sourceforge.net

您还需要更新您的 XServer 以支持多只老鼠。

https://en.wikipedia.org/wiki/Multi-Pointer_X

You'll need to replace your window manager with one that supports double mice. The only one that does this is an experimental one based off of icewm.

https://multicursor-wm.sourceforge.net

You'll also need to update your XServer to support multiple mice.

https://en.wikipedia.org/wiki/Multi-Pointer_X

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文