don*_*x86 6 server tty key-binding
我最近安装了 Ubuntu Server 16.04.2(因为我使用的大多数程序都有一个 cli 界面),每当我尝试使用 ( Alt+ left/right arrow key) 键盘快捷键时,对于 Weechat,tty 开关 而不是我打开的 irc 频道。我想保留切换 ttys和使用 justCtrlAltF1等的选项。有人可以帮我吗?谢谢你。
小智 0
通过一些研究,我能够找出问题所在。X 服务器没有占用键盘。
这是我的 /etc/X11/xorg.conf 中的内容:
Section "InputDevice"
Identifier "Keyboard0"
Driver "evdev"
Option "Device" "/dev/input/event1"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,us"
Option "XkbVariant" "oss,bepo"
Option "XkbOptions" "grp:shift_toggle,grp_led:scroll"
EndSection
添加Option "GrabDevice" "True"
到“结束部分”之前
在 Ubuntu 18.04.1 LTS 上为我工作
如果您的 xorg.conf 不存在,则只需为键盘创建一个新部分,其中仅包含新行。