bugs in window manager shortkey setting
Wybo Dekker
wybo at xs4all.nl
Tue Mar 25 14:19:37 UTC 2014
When, ini 14.04 beta1, I change the shortkeys for moving through
workspaces from the default:
Ctrl+Alt+Left/Right/Up/Down
to: Ctrl+Left/Right/Up/Down
that works fine. However, after logging out and in again, only Ctrl+Left
works, the others are turned back to the default settings.
Still, the configuration file, xfce4-keyboard-shortcuts.xml, shows no
changes: the behavior does not match the configuration file anymore.
The problem seems to be that some of the original settings:
<property name="<Control><Alt>Left" type="string"
value="left_workspace_key"/>
<property name="<Primary><Alt>Right" type="string"
value="right_workspace_key"/>
are not removed from the conf-file: I could solve the problem by editing
those out.
Solution(?):
The problem is probably in the code under the "Reset to
Defaults"-button; these are the 8 codelines that it generates (where 4
codelines should be sufficient):
<property name="<Control><Alt>Up" type="string"
value="up_workspace_key"/>
<property name="<Control><Alt>Down" type="string"
value="down_workspace_key"/>
<property name="<Primary><Alt>Left" type="string"
value="left_workspace_key"/>
<property name="<Primary><Alt>Down" type="string"
value="down_workspace_key"/>
<property name="<Primary><Alt>Up" type="string"
value="up_workspace_key"/>
<property name="<Control><Alt>Left" type="string"
value="left_workspace_key"/>
<property name="<Primary><Alt>Right" type="string"
value="right_workspace_key"/>
<property name="<Control><Alt>Right" type="string"
value="right_workspace_key"/>
Finally, the attached script lists the entries in
xfce4-keyboard-shortcuts.xml and, in first three lines, shows an anomaly
in the file, caused by two missing backslashes. Filter the output
through sort -k2 and it shows many entries that occur twice: one
starting with Control, the other starting with Primary.
Hope this helps...
--
Wybo
-------------- next part --------------
#!/bin/bash
sed -n '/</p' .config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml |
sed 's/ *<property name="<//
s/&[lg]t;/ /g
s/" type="empty/\tempty/
s/" type="string" value="/\t/
s/"\/>//
' |expand -30
More information about the xubuntu-devel
mailing list