Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am attempting to edit existing and add new keyboard shortcuts in Ubuntu 12.10 running XFCE 4.10.

When I attempt to add a new keyboard shortcut via Settings > Keyboard > Application Shortcuts, the screen shown when clicking + Add has a field entry for the command, but nothing for the Shortcut (no input field is shown, just a blank area).

enter image description here

Any advice?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Me too, Xubuntu using Xfce 4.10. It'll be fixed any day now I'm sure. See for example an Xfce forum entry where people reported shortcuts stopped working in 4.10, and this nice fellow Jerome jumped in with a ready fix, not even quite one entire year later!

If you'd rather not wait, I'm pretty sure the balky dialog is just a GUI glitch. You can edit the XML file (~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml) directly with a text editor. You can also still set shortcuts using the command line xfconf-query. This for example will add a keyboard shortcut Super-q to launch a terminal as Super-t does:

xfconf-query --channel xfce4-keyboard-shortcuts --property "/commands/custom/<Super>q" --create --type string --set "exo-open --launch TerminalEmulator"

Executing the above adds this line to xfce4-keyboard-shortcuts.xml:

<property name="&lt;Super&gt;q" type="string" value="exo-open --launch TerminalEmulator"/>

The exact magic to add whatever shortcut it is you're hankering for, of course, will vary. The XML file is full of ideas, even if you decide to modify it using xfconf-query.

share|improve this answer

I too was a bit puzzled about this, but it works: you have to type the command you want in the input field, then select "OK" in the dialog.

Another dialog then appears:

Xfce4 keyboard binding configuration

With this dialog selected you just have to type the shortcut on your keyboard you want to assign to the command.

share|improve this answer
    
Wow, that's quite unintuitive –  tokarev Jul 2 at 11:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.