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="&lt;Control&gt;&lt;Alt&gt;Left" type="string"
value="left_workspace_key"/>
  <property name="&lt;Primary&gt;&lt;Alt&gt;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="&lt;Control&gt;&lt;Alt&gt;Up" type="string"
value="up_workspace_key"/>
      <property name="&lt;Control&gt;&lt;Alt&gt;Down" type="string"
value="down_workspace_key"/>
      <property name="&lt;Primary&gt;&lt;Alt&gt;Left" type="string"
value="left_workspace_key"/>
      <property name="&lt;Primary&gt;&lt;Alt&gt;Down" type="string"
value="down_workspace_key"/>
      <property name="&lt;Primary&gt;&lt;Alt&gt;Up" type="string"
value="up_workspace_key"/>
      <property name="&lt;Control&gt;&lt;Alt&gt;Left" type="string"
value="left_workspace_key"/>
      <property name="&lt;Primary&gt;&lt;Alt&gt;Right" type="string"
value="right_workspace_key"/>
      <property name="&lt;Control&gt;&lt;Alt&gt;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
#!/bin/bash

sed -n '/&lt/p' 
.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml |
sed 's/  *<property name="&lt;//
     s/&[lg]t;/ /g
     s/" type="empty/\tempty/
     s/" type="string" value="/\t/
     s/"\/>//
' |expand -30


-- 
xubuntu-devel mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/xubuntu-devel

Reply via email to