LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 04-29-2009, 09:03 AM   #1
notorp
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:
Code:
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

Code:
/apps/metacity/global_keybindings and
/apps/metacity/keybinding_commands
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.
 
  


Reply

Tags
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


All times are GMT -5. The time now is 06:47 AM.

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