Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 04-29-2009, 09:03 AM   #1
LQ Newbie
Registered: Sep 2005
Distribution: Fedora 10/9/8/6 - FC3 - RH9 + Puppy Dog
Posts: 27

Rep: Reputation: 15
Lightbulb Custom Keybindings in Gnome - Metacity Compiz (Desktop Effect)

After spending an hour or so trying to work out why my custom key bindings won't working and following a whole raft of tutorials I tracked the issue down to a once known bug between metacity and compiz.

So to create your own keybinding you can either use the gconf tool on the console or:
gconftool-2 --type=string --set /apps/metacity/global_keybindings/run_command_1 '<Alt>J'
gconftool-2 --type=string --set /apps/metacity/keybinding_commands/command_1 'joe'
much a much easier way use gconf-editor
and follow the tree to

/apps/metacity/global_keybindings and
the type the key stroke you want for say run_command1 and the program/custom script you want to execute in the matching command_1

The shortcut will work unless you've turned on desktop-effects in system > preferences > Look and Feel. This activated compiz in a minimal sort of way and by doing so compiz sits between you and metacity if you like.

The result of this is that all the gconf mods to the metacity area have no effect. Instead now you need to alter them in /apps/compiz/general/allscreens/options/ instead. This time everything is in one level but with slightly different layout in that compiz calls in run_command_key_n instead of run_command_n and these go with commandn rather than command_n.

I hope this saves someone else a lunch hour.


compiz, desktop effects, gnome, keybinding, metacity

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling Desktop effect in Gnome nmansour Linux - Newbie 1 08-04-2008 12:38 AM
fire and water effect in compiz fusion adrian30020 Linux - Newbie 3 11-13-2007 07:19 PM
fresh fedora install, ATI, gnome desktop effects (compiz?) wet Fedora 2 11-10-2007 02:56 PM
Messed up my desktop. Need to reinstall compiz and desktop effect jobbe Linux - Software 2 09-20-2007 01:35 AM
problems in custom desktop icons in kde and gnome spyghost Linux - Software 0 01-25-2004 02:58 AM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration