| Summary: | Layouts do not persist after system restart | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | contramuffin |
| Component: | kcm_keyboard | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | butirsky, duha.bugs, natalie_clarius, roozbanilia |
| Priority: | NOR | ||
| Version First Reported In: | 6.1.5 | ||
| Target Milestone: | --- | ||
| Platform: | Kubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
contramuffin
2024-10-13 08:16:24 UTC
Update: this appears to be due to some unexpected interaction between Fcitx and the KDE keyboard layouts. Fcitx seems to override KDE's options, which explains why the layouts don't persist. This should be made more clear to the user Here’s a step-by-step guide to add Persian(in my case) and English keyboard layouts in Kubuntu and make sure they persist after reboot: --- Step 1: Open System Settings 1. Open System Settings from the application menu. 2. Navigate to Input Devices > Keyboard. --- Step 2: Enable Layout Configuration 1. In the Layouts tab, check the box "Configure layouts". 2. Click the Add button to add keyboard layouts. --- Step 3: Add Persian and English Layouts 1. In the pop-up window: Select English (US) (or your preferred English variant) from the list and click OK. Repeat the process to add Persian. 2. Once both layouts are added, ensure English is set as the default layout: Select English in the list and click the Up arrow to move it to the top. --- Step 4: Configure Layout Switching Shortcut 1. In the same Layouts tab, look for the Switching Policy section. 2. Set a shortcut to toggle between layouts. For example: Click on the shortcut field. Press a combination like Alt+Shift or Ctrl+Space. --- Step 5: Apply Changes 1. Click Apply at the bottom of the window to save your settings. 2. Close the System Settings window. --- Step 6: Ensure Persistence After Reboot 1. Open a terminal and edit the system-wide keyboard configuration file: sudo nano /etc/default/keyboard 2. Modify the file to look like this: XKBMODEL="pc105" XKBLAYOUT="us,ir" XKBVARIANT="," XKBOPTIONS="grp:alt_shift_toggle" .change layout maps however you want XKBLAYOUT: Lists the layouts (us for English, ir for Persian). XKBOPTIONS: Specifies the layout toggle shortcut (e.g., alt_shift_toggle). 3. Save and exit (Ctrl+O, Enter, Ctrl+X). --- Step 7: Apply the New Settings Run the following commands to apply the new configuration: sudo dpkg-reconfigure keyboard-configuration sudo service keyboard-setup restart --- Step 8: Reboot and Test 1. Reboot your system to ensure the changes persist. 2. Test switching between Persian and English layouts using the shortcut you set. --- Let me know if you need further assistance! |