Fedora bug https://bugzilla.redhat.com/show_bug.cgi?id=838373
and similar reports suggest that the issue of keyboard settings (layouts) being lost is already fixed.
But it isn't in my case.
Here are a couple of reproducers:
0) except from US English, setup another keyboard (Czech qwerty in my case)
A) change keyboard manually by `setxkbmap'. All settings are gone.
B) Disconnect / Reconnect a USB hub with keyboard, mouse and USB stick attached.
C) Connect the same keyboard to a different USB port
While the recent update has fixed the crashes and when being extra careful it helps, it's still a great issue on notebook which get connected / disconnected seeveral times per day.
xfce4-xkb-plugin-0.5.6-1.fc18.x86_64 (Fedora 18)
I've opened a Fedora 18 bug here:
I'm somewhat confused - why are you changing the settings with setxkbmap? Basically, you can think of xkb-plugin's behavior as undefined when changing XKB settings by outside means (practically speaking, the current version will pick up the changed settings and will eventually store them as its own; this will change a little in the xfce 4.12).
Do you still lose the XKB settings if you don't run setxkbmap? Is that reproducible?
Yes, I still loose the settings without setxkbmap. By unplugging keyboard, undocking, changing keyboard from direct connection to through USB hub.
That's why I use setxkbmap (mapped to a keyboard shortcut) to not have to re-setup the whole keyboard config everytime I (un)dock :)
It's 100% reproducible in my case.
I use Keyboard Layouts Plugin 5.4.3 and some components of xfce from a recent git and the problem you describe never affects me. (I have an English-US keyboard layout and two Czech layouts installed.)
I have a wireless keyboard which I sometimes unplug (weird you can unplug a wireless keyboard but yes, you can!) and the layout settings stay put.
So maybe try a more recent version of the Keyboard Layout Plugin and perhaps xfce4-settings and xfconf from the git.
I have a different issue with unplugging the usb keyboard which I am about to file a bug report on, though.
Hey, I had similar problem, everytime I restart or logged out the keyboard shortcut was lost. I fixed it up by going to XFCE Settings -> Keyboard -> Layout and I checked 'Use system defaults' and this solves my problem, so maybe it can help someone too.
Daniel, you may want to open a bug against xfce-settings - xkb-plugin doesn't handle the shortcuts (the keyboard settings you are using confusingly duplicate xkb-plugin's functionality, which will be fixed in xfce 4.12).
-- GitLab Migration Automatic Message --
This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/panel-plugins/xfce4-xkb-plugin/-/issues/22.
Please create an account or use an existing account on one of our supported OAuth providers.
If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests
Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev