# 查看当前键盘布局setxkbmap -query # 示例输出:# rules: evdev# model: pc105# layout: us 如果布局不正确(如显示为 # 示例:将键盘布局更改为法语(fr)setxkbmap fr # 示例:将键盘布局更改为德语(de)setxkbmap de 此方法仅在当前会话中有效,重启后会恢复原设置。3. # 恢复为美式键盘布局setxkbmap us # 更新配置文件sudo nano /etc/default/keyboard将 XKBLAYOUT 改回 "us",然后重新配置:sudo dpkg-reconfigure
making small adjustments with the old xmodmap command to providing an entirely new keyboard map with the setxkbmap 有许多方法可以实现这一点,从使用旧的 xmodmap 命令进行小的调整到使用 setxkbmap 实用程序提供全新的键盘映射。 你如何知道应该使用哪种(如果有)? map and compile it with the xkbcomp command, then load and activate that map in the X server with the setxkbmap XKB背后的基本思想是,您可以定义一个键盘映射,然后使用xkbcomp命令编译它,最后使用setxkbmap命令在X服务器中加载和激活该映射。
FvwmButtons AddToFunc InitFunction + I exec xsetroot -mod 2 2 -fg rgb:55/40/55 -bg rgb:70/50/70 + I exec setxkbmap
xorg-fonts-encodings-1.0.5-2 xorg-server-1.20.13-2 xorg-server-common-1.20.13-2 xorg-setxkbmap