skip to content
Liu Yang's Blog

[Linux记录]Gnome+Wayland配置触控板速度和Caps2Esc功能

/ 1 min read

Updated:
Table of Contents

WSL经常有设置问题,切到Linux就舒心多了,下面是我解决触控板问题的过程

OS: Debian GNU/Linux 13 (trixie) x86_64 DE: GNOME 48.4 WM: Mutter (Wayland)

调整触控板鼠标速度

Terminal window
# -1~1
gsettings set org.gnome.desktop.peripherals.touchpad speed 1.0
# get
gsettings get org.gnome.desktop.peripherals.touchpad speed

调整触控板滚动速度

见链接,按步骤配置即可,最后触控板速度不行可以额外设置一下

https://askubuntu.com/questions/1432154/unable-to-set-scrolling-speed-of-touchpad-ubuntu-22-10-wayland/1477188#1477188

Keyd设置Caps2Esc功能

Keyd是内核级的键盘映射工具,随机器启动,类似于Win的AutoHotKey

➜ ~ cat /etc/keyd/default.conf
[ids]
*
[main]
# 将 capslock 键重载:按住 (hold) 激活 nav 层,单击 (tap) 输出 esc
capslock = overload(nav, esc)
# 定义 nav 层
[nav]
h = left
j = down
k = up
l = right

启用keyd可能会用干扰触控板(输入时禁用),在官方的README可设置

https://github.com/rvaiya/keyd?tab=readme-ov-file#why-is-my-trackpad-is-interfering-with-input-after-enabling-keyd