安装好arch很简单,但是各种各样得心应手的配置需要自己设置,这里说一下关于触摸板的设置当然,如果你是一个老玩家,直接去读archwiki就好了,下面写的内容也基本是从wiki上摘抄而来先安装驱动,我这里已经安装过了,就取消了安装ys命令=yay-S然后到/etc/X11/xorg.conf.d目录下查看下面有什么文件,我这里默认的是什么都没有那么创建一个符号链接#arch@lenovoin/et
安装好arch很简单,但是各种各样得心应手的配置需要自己设置,这里说一下关于触摸板的设置
当然,如果你是一个老玩家,直接去读archwiki就好了,下面写的内容也基本是从wiki上摘抄而来
先安装驱动,我这里已经安装过了,就取消了安装ys命令= yay -S
然后到 /etc/X11/xorg.conf.d目录下查看下面有什么文件,我这里默认的是什么都没有
那么创建一个符号链接
# arch @ lenovo in /etc/X11/xorg.conf.d [8:55:09] $ s ln -s /usr/share/X11/xorg.conf.d/40-libinput.conf /etc/X11/xorg.conf.d/40-libinput.conf# arch @ lenovo in /etc/X11/xorg.conf.d [8:55:14]$ ls40-libinput.conf# arch @ lenovo in /etc/X11/xorg.conf.d [8:55:15]$ ll总用量 0lrwxrwxrwx 1 root root 43 2021-03-08 08:55:14 40-libinput.conf -> /usr/share/X11/xorg.conf.d/40-libinput.conf# arch @ lenovo in /etc/X11/xorg.conf.d [8:55:27]$ vi 40-libinput.conf
使用命令查看一下触摸板配置
xinput list
可以看到touchpad的编号id=14
Device Enabled (167): 1
Device Enabled 是属性名,括号中的 167 是属性ID,
1/0 表示启用/禁用
当然也可以直接编辑配置文件
sudo nvim /etc/X11/xorg.conf.d/40-libinput.conf
我这里添加里这么两行
轻触代替点击,双指代替右键
重启电脑即可
更加高级安装下面这个软件# arch @ lenovo in /etc/X11/xorg.conf.d [9:22:53]$ ys libinput-gestures正在解析依赖关系...正在查找软件包冲突...软件包 (1) libinput-gestures-2.60-1下载大小:0.02 MiB全部安装大小:0.07 MiB:: 进行安装吗? [Y/n]:: 正在获取软件包...... libinput-gestures-2.60-1-any24.4 KiB0.00B/s 00:00 [########################################] 100%(1/1) 正在检查密钥环里的密钥[########################################] 100%(1/1) 正在检查软件包完整性[########################################] 100%(1/1) 正在加载软件包文件[########################################] 100%(1/1) 正在检查文件冲突[########################################] 100%(1/1) 正在检查可用存储空间[########################################] 100%:: 正在处理软件包的变化...(1/1) 正在安装 libinput-gestures[########################################] 100%=== INSTALLATION NOTES for libinput-gestures ===A user must be a member of the input group, i.e. run:sudo gpasswd -a $USER inputA user can start libinput-gestures from their DE, or run:libinput-gestures-setup startA user can enable auto start of libinput-gestures, i.e. run:libinput-gestures-setup autostartConfiguration files are at:/etc/libinput-gestures.conf (system wide default)$HOME/.config/libinput-gestures.conf (optional per user)libinput-gestures 的可选依赖wmctrl: required for _internal command, as per default configurationxdotool: simulates keyboard and mouse actions for Xorg or XWayland based apps [已安装]:: 正在运行事务后钩子函数...(1/3) Arming ConditionNeedsUpdate...(2/3) Updating icon theme caches...(3/3) Updating the desktop file MIME type cache...
根据提示,运行下面三条命令
A user must be a member of the input group, i.e. run:sudo gpasswd -a $USER inputA user can start libinput-gestures from their DE, or run:libinput-gestures-setup startA user can enable auto start of libinput-gestures, i.e. run:libinput-gestures-setup autostart
安装一下gui,不是必须,可以直接编辑配置文件
ys gestures
这个软件是借助xdotool来用的,所以也要安装一下
ys xdotool
然后可以绑定触摸板到xdotool