! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
an panel plugin drops my caps settings if it's in panel.
Status:
RESOLVED: MOVED
Product:
Xfce4-xkb-plugin
Component:
General

Comments

Description Pletnev Alexander 2011-08-24 12:47:32 CEST
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.
Comment 1 arga hakmi 2011-09-07 18:02:13 CEST
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.
Comment 2 Mikhail Osipov 2012-05-11 20:51:34 CEST
Created attachment 4413 
Handle other XKB options patch
Comment 3 Mikhail Osipov 2012-05-11 20:57:23 CEST
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.
Comment 4 Liv 2015-09-05 17:44:55 CEST
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?
Comment 5 Liv 2015-09-07 11:04:40 CEST
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?
Comment 6 Git Bot editbugs 2020-05-23 01:13:47 CEST
-- 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

Bug #7921

Reported by:
Pletnev Alexander
Reported on: 2011-08-24
Last modified on: 2020-05-23

People

Assignee:
Azamat H. Hackimov
CC List:
2 users

Version

Attachments

Handle other XKB options patch (4.16 KB, patch)
2012-05-11 20:51 CEST , Mikhail Osipov
no flags

Additional information