[deepin exploration] 在 Deepin V25 中实现三指拖拽
Tofloor
poster avatar
bbbear2002
deepin
2025-08-17 09:00
Author

202307061039092334_libinput-three-finger-drag.zip

在 Deepin V25 中实现三指拖拽,类似 Mac 的效果

  1. 首先安装包 libinput-tools 和 libxdo-dev;
  2. 在系统设置里关闭所有三指命令;
  3. 下载 libinput-three-finger-drag,把它放到 /opt/ 文件夹;
  4. 编辑 sudoers 文件:sudo gedit /etc/sudoers,在里面加上一行 Emmanuel ALL=(ALL) NOPASSWD: /opt/libinput-three-finger-drag。其中 Emmanuel 这里替换成你的用户名;
  5. 编辑开机文件,在 ~/.config/autostart/ 文件夹里,新建一个 .desktop 文件,内容是
    [Desktop Entry]
    Version=1.0
    Name=Libinput
    GenericName=Example Application
    Comment=This is a sample application
    Exec=sudo /opt/libinput-three-finger-drag 4.0
    Icon=/path/to/icon.png
    Terminal=false
    Type=Application
    Categories=Utility;Application;
    其中后面这个 4.0 是调整拖拽速度的,可以自行选择;
  6. 在/etc/X11/xorg.conf.d 目录下有个 40-libinput.conf 文件,将“TappingDrag”从“on”改成“off”,重启即可,关闭系统的点按拖拽;
  7. 完成。
Reply Favorite View the author
All Replies
jjcui8595
deepin
Resources Team
2025-08-17 13:51
#1

like

Reply View the author