如何在Xubuntu中设置键盘布局切换和指示?

我每天使用三种不同的语言(英语、捷克语和俄语)。我更喜欢使用+Alt+Shift全局切换它们,而不是每个窗口单独设置。
我还希望能够看到当前活动语言的指示。
不幸的是,在XUbuntu 11.10中,我找不到任何明显的方法来设置这个功能 - 在面板配置中甚至没有键盘指示器小程序可用。有什么建议吗?

10倍人 - 你简直是神一般!这就是最简单和最有效的方法!让我找回了我在寻找解决方案集的所有时间意义 setxkbmap -option grp:switch,grp:caps_toggle us,bg - user143032
4个回答

有一个适用于xfce的键盘布局插件 - xfce4-xkb-plugin。如果尚未安装,请安装它,然后将其添加到面板中。右键单击其图标并添加所需的布局。
要仅配置键盘快捷方式,请使用以下方法:
setxkbmap -option grp:switch,grp:alt_shift_toggle us,ru

谢谢,但它无法记住我的偏好设置!http://askubuntu.com/questions/66096/how-to-set-up-xfce4-xkb-plugin-to-remember-settings-over-reboots - Ivan
“Add it to the panel” means to include or place something onto the panel. To do this, you can follow these steps:
  1. Locate the panel where you want to add the item.
  2. Find the option or button that allows you to customize or modify the panel.
  3. Click on the option/button and look for the specific function to add an item.
  4. Select the item you wish to add from the available options or browse for it.
  5. Confirm your selection and the item will be added to the panel.
Please note that the exact steps may vary depending on the specific software or system you are using.
- Ari Brodsky
1嗯,我通过其他答案弄明白了,但是作为参考,“the panel”指的是屏幕顶部的水平面板。对大多数人来说可能很明显,但对于我这个Xubuntu的新手来说不太清楚。 - Ari Brodsky
+1 这也适用于 xubutu 14.04 - user000001
对我来说,这是setxkbmap -option grp:switch,grp:alt_shift_toggle br,ru,只是给未来的自己做个备忘。 - Felipe

遇到了与xubuntu 13.04相同的问题。许多在线文档所提及的旧方法(通过设置 > 键盘 > 布局选项)不再适用,因为没有这样的按钮了。下面是我找到的新常规方法(无需使用shell命令或编辑X11配置),详细说明如下:
- 确保已安装xfce4-xkb-plugin软件包(通常应该已经安装)。 - 右键单击顶部面板,选择“面板” > “添加新项目...”。 - 从列表中选择“键盘布局”。面板上会出现一个国旗图标。 - 现在右键单击顶部面板上的国旗图标,选择“属性”。 - 现在你将进入实际的布局切换设置菜单,在这里你可以选择布局切换的快捷键组合,以及自定义其他有用的内容,包括布局列表。
附注:我不介意使用shell或编辑X11配置。说实话,我喜欢使用shell。但是,当需要使用shell来设置GUI时,我就很讨厌了。 :)

这个解决方案也适用于Xubuntu 12.04。 - Luís de Sousa

在我的情况下,我需要添加键盘布局。 输入图像描述 输入图像描述 输入图像描述 输入图像描述 输入图像描述

enter image description here


  • 设置键盘布局,请转到设置 > 键盘 > 添加布局
  • 语言指示,请转到面板 > 添加新项目 > 键盘布局

你的回答可以通过添加更多支持信息来改进。请编辑以添加进一步的细节,例如引用或文档,以便他人可以确认你的回答是否正确。你可以在帮助中心找到关于如何撰写好回答的更多信息。 - Community