You are not logged in.

#1 2008-12-31 13:09:50

syntaxerrormmm
Member
From: Italy
Registered: 2008-10-22
Posts: 80
Website

[GNOME] Metacity not loading global keybindings

Hi all,

today I found that metacity was not getting my configurations for global keybindings. I have an IBM ThinkPad X41 tablet and there are some keys at the bottom of the screen I would like to configure. Both the keys are recognized as XF86LaunchA and XF86RotateWindows (checked with xev), ~/.gconf/apps/metacity/global_keybindings/%gconf.xml relevant part:

<?xml version="1.0"?>
<gconf>
        <entry name="run_command_2" mtime="1230726347" type="string">
                <stringvalue>XF86LaunchA</stringvalue>
        </entry>
        <entry name="run_command_1" mtime="1230726353" type="string">
                <stringvalue>XF86RotateWindows</stringvalue>
        </entry>
</gconf>

and ~/.gconf/apps/metacity/keybinding_commands/%gconf.xml relevant part:

<?xml version="1.0"?>
<gconf>
        <entry name="command_2" mtime="1224111268" type="string">
                <stringvalue>/usr/bin/cellwriter</stringvalue>
        </entry>
        <entry name="command_1" mtime="1230726795" type="string">
                <stringvalue>/usr/local/bin/xrotate.sh</stringvalue>
        </entry>
</gconf>

To workaround on that, I had to insert an entry on the session manager to launch 'metacity --replace &' at each session start.

I'm asking to the GNOME wizards here: someone knows a better and cleaner way to make metacity aware of my keybindings?

Thanks for the help, regards,


syntaxerrormmm - Homepage

Offline

#2 2009-01-01 05:18:06

okplayer02
Member
From: Denver, Colorado
Registered: 2008-11-24
Posts: 84

Re: [GNOME] Metacity not loading global keybindings

did u try the keyboard shortcuts under gnome i know its a bit simplistic but try that


Say what is good or keep silent  --Prophet Muhammad (SAW)

Offline

#3 2009-01-01 18:20:27

syntaxerrormmm
Member
From: Italy
Registered: 2008-10-22
Posts: 80
Website

Re: [GNOME] Metacity not loading global keybindings

Well, GNOME keyboard shortcuts are a limited set of properties more or less related to the window management. With the GUI, it is not possible to configure arbitrary commands to bind to certain key combinations (at least IIRC smile ).

In any case, yes, I have tried also with it; I saw nothing that seemed to me to be related with the issue.

Thanks for the reply.


syntaxerrormmm - Homepage

Offline

#4 2009-01-01 18:28:24

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: [GNOME] Metacity not loading global keybindings


Mr Green

Offline

#5 2009-01-01 18:33:21

syntaxerrormmm
Member
From: Italy
Registered: 2008-10-22
Posts: 80
Website

Re: [GNOME] Metacity not loading global keybindings

Thanks Mr Green,

the file I have indicated in my first post (the ones in ~/.gconf) are the files where gconf stores the settings for the two entries cited in your link. So yes, I was aware of that and did it just the way described there.

Thanks again,

Last edited by syntaxerrormmm (2009-01-01 18:33:59)


syntaxerrormmm - Homepage

Offline

#6 2009-01-01 18:42:08

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: [GNOME] Metacity not loading global keybindings

not sure if xbindkeys would help, do your commands [you list above!] run?


Mr Green

Offline

#7 2009-01-01 19:26:57

syntaxerrormmm
Member
From: Italy
Registered: 2008-10-22
Posts: 80
Website

Re: [GNOME] Metacity not loading global keybindings

Obviously yes, they run correctly. Also, I add that with the same settings the keybindings worked, until yesterday of course. I didn't try them daily, though.


syntaxerrormmm - Homepage

Offline

#8 2009-01-01 22:28:32

Super Jamie
Member
From: Brisbane, AU
Registered: 2008-12-15
Posts: 79
Website

Re: [GNOME] Metacity not loading global keybindings

As much as it's not a "real" solution, install Openbox and run a "GNOME\Openbox" session in the GDM chooser. Metacity's keybinding support is awful if you want to use anything other than the normal 101 keys.

Offline

#9 2009-01-03 19:48:43

syntaxerrormmm
Member
From: Italy
Registered: 2008-10-22
Posts: 80
Website

Re: [GNOME] Metacity not loading global keybindings

Thanks Super Jamie,

I prefer to stick with standard GNOME, at least for the moment. I already know how much powerful could be another WM (used to work with wmii some years ago).

I really don't understand why the first instance of metacity cannot load the correct keybindings, since the second one (the one launched with '--replace') does.

Thanks again,


syntaxerrormmm - Homepage

Offline

Board footer

Powered by FluxBB