centos7应用笔记:键盘重影射

您所在的位置:网站首页 xmodmap改数字6 centos7应用笔记:键盘重影射

centos7应用笔记:键盘重影射

2024-07-11 17:26| 来源: 网络整理| 查看: 265

centos7应用笔记:键盘重影射

我的键盘 右shift键 无法使用了。想使用 右alt键 代替。 查询了一下 xmodmap 命令可以实现该功能。 以下是我的配置方法的记录。

xmodmap 配置文件

xmodmap 配置文件的作用是:交换 右shift键 和 右alt键。 可以参考 manpage 中的例子。

创建一个 xmodmap 配置文件: /etc/xmodmap.config

xmodmap 配置文件内容:

! swap Alt_R and Shift_R remove Shift = Shift_R remove Mod1 = Alt_R keysym Shift_R = Alt_R keysym Alt_R = Shift_R add Shift = Shift_R add Mod1 = Alt_R xmodmap 指令的使用

xmodmap 执行配置文件。交换 右shift键 和 右alt键。

xmodmap /etc/xmodmap.config

将以上的指令写入 /etc/profile 中。就可以再开机的时候自动配置了。

注意:

如果再执行一次 xmodmap /etc/xmodmap.config。两键又会交换回来的。

xmodmap 其他指令。

使用 xmodmap 查看 modifier 键值影射。

xmodmap > xmodmap: up to 4 keys per modifier, (keycodes in parentheses): > >


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3