Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering is there any way to add additional, alternative key binding to a particular feature in compiz?

I am using Wall plugin and on my ThinkPad it is convenient to switch between horizontal workspaces with media buttons for browser navigation. But there just two of them, so I have to use completely different combinations to switch between workspaces vertically and that would very helpful if I can also use similar kind of combination to switch horizontally as well in addition to those media buttons.

Is there a way maybe to send a message to the compiz to execute particular command? That would solve the issue.

share|improve this question

Yes, I like to use CCSM (CompizConfig Settings Manager).

share|improve this answer
    
It allows to set up just one key shortcut for any particular feature. And I want two different ones that will trigger the same action. – vava Jun 4 '10 at 3:05
    
Its been a while since I used it, but I recall it having a custom section that allowed you to choose commands and choose shortcuts for those commands. To make a two shortcuts point to the same command, you'd have to have two different lines that do the same command each with a different shortcut. I'll don't have access to CCSM at the moment, I'll have to try it later. – Jarvin Jun 8 '10 at 16:13

You can send messages to compiz using the Compiz Dbus plugin.

http://wiki.compiz.org/Plugins/Dbus

A Python script is available to download from that page which vastly simplifies things, or you can use pycompiz:

http://code.google.com/p/pycompiz/

Then you can bind the additional commands to keyboard shortcuts in CCSM, or your DE's usual method.

However I did find some limitations to this method; in the end I achieved what I wanted using binds to xdotool commands simulating the original Compiz keypress.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .