You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Linux Mint(Cinnamon)下切换已保存键盘布局的快捷键设置方法

Got it, let's walk through how to set up a keyboard shortcut that cycles through your saved keyboard layouts—just like Windows + Space in Windows or GNOME. The steps vary a bit depending on your desktop environment, so I'll cover the most common ones below:

GNOME Desktop

Since you mentioned GNOME's Windows + Space behavior, this is straightforward (and it's likely already set up by default, but let's confirm or adjust it):

  • Open Settings (hit the Super key and search for "Settings" to launch it)
  • Navigate to Keyboard > Keyboard Shortcuts
  • Scroll down to the Typing section, then look for the action labeled Switch to next input source
  • If the shortcut isn't already set to Super+Space, click the current shortcut field, then press the Super+Space combination to assign it
  • Close the settings window, and you're done—pressing Super+Space will now cycle through all your added keyboard layouts
KDE Plasma

For KDE users, here's how to replicate the same behavior:

  • Open System Settings (find it via your application launcher or right-click the desktop and select "Configure Desktop")
  • Go to Input Devices > Keyboard > Shortcuts tab
  • In the left-hand pane, select Input Method
  • Locate the action Switch to Next Input Method
  • Click the field labeled "None" (or the current shortcut), then press Super+Space to assign the combination
  • Click "Apply" to save the changes, and test the shortcut to make sure it cycles through your layouts
Xfce Desktop

Xfce requires a small helper tool to get the cycling behavior, but it's easy to set up:

  1. First, install the xkb-switch tool (it handles layout cycling):
    • For Debian/Ubuntu-based distros: run sudo apt install xkb-switch
    • For Fedora/RHEL-based distros: run sudo dnf install xkb-switch
  2. Open Settings Manager > Keyboard > Application Shortcuts tab
  3. Click the Add button
  4. In the "Command" field, enter xkb-switch -n (this command triggers switching to the next layout)
  5. Click "OK", then press Super+Space when prompted to assign the shortcut
  6. Click "OK" again to save, and now your shortcut will cycle through your saved layouts
Generic X11 (Lightweight WMs like i3, Openbox, etc.)

If you're using a window manager instead of a full desktop environment, you can set this up directly via X11 config:

  • First, confirm your keyboard layouts are configured by checking /etc/X11/xorg.conf.d/00-keyboard.conf (run cat /etc/X11/xorg.conf.d/00-keyboard.conf to view it)
  • Add the following line to your startup script (like .xinitrc for X11, or your WM's config file e.g., ~/.config/i3/config for i3):
    setxkbmap -layout us,es,fr -option grp:win_space_toggle
    
    Replace us,es,fr with your actual layout codes (e.g., us,de for English and German)
  • This line tells X11 to use the specified layouts and assign Super+Space as the cycle shortcut. You can adjust the shortcut by changing grp:win_space_toggle—other options include grp:alt_shift_toggle for Alt+Shift, or grp:ctrl_shift_toggle for Ctrl+Shift.

内容的提问来源于stack exchange,提问作者user869304

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 03:37:09