I use next command for switching my control key to a caps: /usr/bin/setxkbmap -option "ctrl:nocaps" and caps became control. but then after a 2 or 5 minutes, caps again became regular Caps. And if i remove that plugin from my panel, the problem is away. I use Us colemak layout and Russian(leagacy) layout and right alt for switching layouts.
this workaround worked for me: resolved in future versions. the README also mentions an undocumented (well...) config file option called I edited the configuration file which on my machine was found at: ~/.config/xfce4/panel/xkb-plugin-??.rc and changed the 'never_modify_config' option to true. I then 'kill -9' the xfce4-xkb-plugin process which respawned and reloaded the modified conf file. the problem disappeared, I can manage keyboard layouts through the xfc4 settings/keyboard menu, and still switch languages using the xkb panel plugin.
Created attachment 4413 Handle other XKB options patch
Comment on attachment 4413 Handle other XKB options patch This bug is a long existing limitation mentioned in xfce4-xkb-plugin web page at xfce goodies project: > Currently the plugin cannot handle well most of the XKB options. > Actually it will overwrite all but the first grp: option found in > the running configuration. This will change in future versions. For my case i am using "caps:ctrl_modifier" in XkbOptions. And when using xfce4-xkb-plugin after some time caps setting is restored to the default. This patch solves it. Short description how it works: by default function xkb_config_update_settings (panel-plugin/xkb-config.c) process only "grp:" and "compose:" xkb options, other are ignored. It saves them in internal xfce config, restores them after restart and apply to the current X session. After patching function xkb_config_update_settings will collect other xkb options (non grp and compose) in common string (other_options field of t_xkb_kbd_config structure). It will also saves them in internal config and restores after restart. So xfce4-xkb-plugin will not lose any other options that are configured externally or saved in xorg.conf file.
There have been many changes to the xkb plugin in between. Is this bug still relevant to 0.7.1, and does the patch still apply?
I seem to be noticing the same issue on my system (see related Bug 12190). Any chance this patch would get reviewed and merged upstream?
-- 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/13. 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