[Topic DIscussion] 交换capslock和右ctrl
Tofloor
poster avatar
幻想自由
deepin
2023-08-31 09:50
Author

deepin20.9,如何交换capslock和右ctrl,可以给个详细过程或者参考帖子吗

Reply Favorite View the author
All Replies
云的眼泪
deepin
2023-08-31 16:34
#1

看这个教程

https://blog.51cto.com/u_15127612/3989862

http://www.manongjc.com/detail/61-znhxlocfnuyfslr.html

Reply View the author
幻想自由
deepin
2023-09-01 06:30
#2
It has been deleted!
幻想自由
deepin
2023-09-01 06:31
#3
云的眼泪

看这个教程

https://blog.51cto.com/u_15127612/3989862

http://www.manongjc.com/detail/61-znhxlocfnuyfslr.html

似乎不太行,他会报以下错误

root@zero-PC:~# xmodmap .xmodmap 
xmodmap:  unable to open display ''

Reply View the author
xiao80
deepin
2023-09-01 09:35
#4

xmodmap 需要 x 环境或者说工作在 x 环境下。

还有有更底层的方案,不需要 x 环境。
keyd
https://github.com/rvaiya/keyd

interception-tools:
https://gitlab.com/interception/linux/tools

不过这些在 deepin 下可能需要自行编译或者添加额外源。

caps2esc.c.zip

不想那么折腾的话,可以自己编译这个c 文件,编译后直接运行也没啥配置,毕竟就是一个很简单的需求。这个可以将 caps映射到 ctrl 还有 esc。

Reply View the author
幻想自由
deepin
2023-09-01 20:53
#5
xiao80

xmodmap 需要 x 环境或者说工作在 x 环境下。

还有有更底层的方案,不需要 x 环境。
keyd
https://github.com/rvaiya/keyd

interception-tools:
https://gitlab.com/interception/linux/tools

不过这些在 deepin 下可能需要自行编译或者添加额外源。

caps2esc.c.zip

不想那么折腾的话,可以自己编译这个c 文件,编译后直接运行也没啥配置,毕竟就是一个很简单的需求。这个可以将 caps映射到 ctrl 还有 esc。

了解了,感谢

Reply View the author