https://bugs.kde.org/show_bug.cgi?id=485362
Bug ID: 485362 Summary: Modifying kxkbrc configuration through the command line is not user friendly Classification: Plasma Product: kwin Version: 6.0.2 Platform: Arch Linux OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: input Assignee: kwin-bugs-n...@kde.org Reporter: bojidar.marinov...@gmail.com Target Milestone: --- SUMMARY Currently, changing `kxkbrc` through the command line via `kwriteconfig` results in no observable changes until the configuration is manually changed through the settings module. Looking through the source code, I managed to get Kxkb/Kwin to reload the configuration through `dbus-send --session --type=signal --dest=org.kde.keyboard /Layouts org.kde.keyboard.reloadConfig`, but this was a pain to figure out. Ideally, KWin could listen for config changes to `kxkbrc` using `KConfigWatcher`, and eliminate the whole need for sending that `reloadConfig` signal; though I would be willing to settle for better documentation. Why it matters? - Being able to change settings from the command line enables a larger variety of usecases, integrations, and extensions than KDE developers could have possibly planned out beforehand. This gives users more freedom and power than merely being able to modify the source code, as they can now modify the system's behavior without having to recompile it at all. STEPS TO REPRODUCE 1. Run `cat .config/kxkbrc`, observe the current values of the configuration. 2. Run e.g., `kwriteconfig6 --file kxkbrc --group Layout --key Options caps:backspace`, which would make Caps an additional backspace. 3. Run `cat .config/kxkbrc`, observe that the configuration has been changed. OBSERVED RESULT Pressing CapsLock is still not as an additional backspace. The configuration was not applied, and there is no documentation which would give a clue as to why. EXPECTED RESULT The configuration is applied as soon as it's changed through kwriteconfig6 OR there is an extra command that has to be run which is documented somewhere. Pressing CapsLock functions as an additional backspace. WORKAROUND Run `dbus-send --session --type=signal --dest=org.kde.keyboard /Layouts org.kde.keyboard.reloadConfig` OR open the keyboard settings module and change some value back and forth to update the configuration SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux KDE Plasma Version: 6.0.2 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 ADDITIONAL INFORMATION Vaguely related to bug 470470, as I wouldn't have ran into this issue if `setxkbmap` was working for my usecase (quickly switching the keyboard model between DreymaR's pc104awide model and the default pc104 model). -- You are receiving this mail because: You are watching all bug changes.