Metacity Keyboard Shortcuts manually defined in gconf (not capplet) do not work with Compiz

Bug #76965 reported by Sebastian Bergmann
36
Affects Status Importance Assigned to Milestone
Compiz
Fix Released
Low
Unassigned
compiz (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: desktop-effects

I am running Feisty Fawn on my IBM ThinkPad X60s (Intel 945GM graphics chip, i810 graphics driver) and installed the desktop-effects package.

Enabling desktop effects works fine, but

1. (Customized) Keyboard Shortcuts (as configured via the Preferences application of the same name) do not work when the desktop effects are enabled.

2. The Workspace Switcher panel applet is not updated while the desktop effects are enabled.

Revision history for this message
Ilmari Vacklin (wolverian) wrote :

Happens here too.

Changed in desktop-effects:
status: Unconfirmed → Confirmed
Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

Not a desktop-effects bug, but a compiz one.

Revision history for this message
Alex Muntada (alex.muntada) wrote :

Any news or some workaround available?
Maybe bug 94826 is related to this bug?

Revision history for this message
GoHabsGo (ferrin-danny-deactivatedaccount) wrote :

I can confirm happens to me under Feisty beta.

Revision history for this message
GoHabsGo (ferrin-danny-deactivatedaccount) wrote :

Update on my last post.

Keyboard Shortcuts made from Preferences / Keyboard Preferences are now working with the last version of Compiz (0.3.6.)

But the shortcut I've manually made from the console still doesn't work. Here's the code I used:
gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_9 "<Control><Alt>Delete"
gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_9 "gnome-system-monitor"

Revision history for this message
VF (vfiend) wrote :

GoHabsGo - Compiz doesn't obey those, I guess, but you can set those shorcuts in /apps/compiz/general/allscreens/options

Revision history for this message
Adriaan Peeters (apeeters) wrote :

See also bug #103152.

Changed in compiz:
importance: Undecided → Low
Revision history for this message
juve (awakener) wrote :

# WORKAROUND
#
# add this to your compiz startupscript (ususally /usr/bin/compiz)
# You have to add the code BEFORE compiz.real is executed.

# copy metacity custom shotcuts + commands
for i in `seq 1 12`
do
 METACITY_KB_CMD=`gconftool -g /apps/metacity/keybinding_commands/command_$i`
 METACITY_KB=`gconftool -g /apps/metacity/global_keybindings/run_command_$i`
 if [ "$METACITY_KB_CMD" != "disabled" ] && [ "$METACITY_KB_CMD" != "" ]
 then
  gconftool -s "/apps/compiz/general/allscreens/options/command"$i --type String "$METACITY_KB_CMD"
 fi
 if [ "$METACITY_KB" != "disabled" ] && [ "$METACITY_KB" != "" ]
 then
  gconftool -s "/apps/compiz/general/allscreens/options/run_command"$i"_key" --type String "$METACITY_KB"
 fi
done

# copy metacity desktop-count to compiz-hsize (fixes Cube bug)
METACITY_NUM_WORKSPACES=`gconftool -g /apps/metacity/general/num_workspaces`
gconftool -s /apps/compiz/general/screen0/options/hsize --type int $METACITY_NUM_WORKSPACES

# good luck !

Revision history for this message
juve (awakener) wrote :

Adding this code to your /usr/bin/compiz, just BEFORE compiz.real is executed
will copy your metacity settings (desktop count and hotkeys) to compiz

Good Luck !

PS: I added the code as attachment, because it does not look not very good in my posting.

Revision history for this message
Masakazu Chou (mgdesigner) wrote :

I confirm the bug,too.What I found is

Revision history for this message
Masakazu Chou (mgdesigner) wrote :

Hi i tested Juve's script,but still no working >_<~~

I add it as this.Am I adding this code into the wrong position?

GLXINFO='/usr/bin/glxinfo'
EXT_TFP='GLX_EXT_texture_from_pixmap'

COMPIZ_OPTIONS="--no-fbo --ignore-desktop-hints"

#added by Shoichi START
# WORKAROUND
#
# add this to your compiz startupscript (ususally /usr/bin/compiz)
# You have to add the code BEFORE compiz.real is executed.

# copy metacity custom shotcuts + commands
for i in `seq 1 12`
do
 METACITY_KB_CMD=`gconftool -g /apps/metacity/keybinding_commands/command_$i`
 METACITY_KB=`gconftool -g /apps/metacity/global_keybindings/run_command_$i`
 if [ "$METACITY_KB_CMD" != "disabled" ] && [ "$METACITY_KB_CMD" != "" ]
 then
  gconftool -s "/apps/compiz/general/allscreens/options/command"$i --type String "$METACITY_KB_CMD"
 fi
 if [ "$METACITY_KB" != "disabled" ] && [ "$METACITY_KB" != "" ]
 then
  gconftool -s "/apps/compiz/general/allscreens/options/run_command"$i"_key" --type String "$METACITY_KB"
 fi
done

# copy metacity desktop-count to compiz-hsize (fixes Cube bug)
METACITY_NUM_WORKSPACES=`gconftool -g /apps/metacity/general/num_workspaces`
gconftool -s /apps/compiz/general/screen0/options/hsize --type int $METACITY_NUM_WORKSPACES

# good luck !

# Check whether the GLX_EXT_texture_from_pixmap extension is available in

Revision history for this message
Evgeni Spasov (evgeni-svilen) wrote :

This script from juve works for me.
I turned off desktop effects. Made 4 desktops. Put the script in /usr/bin/compiz just before the last line (there calls compiz.real). Turned on effects.
I noticed when I made 1 desktop without effects and then switche then on - there is no desktop switching (also the script was in /usr/bin/compiz). When I configure 4 desktops without effects and then switch effects on - all works fine.

Revision history for this message
Travis Watkins (amaranth) wrote :

Compiz in gutsy copies these over.

Changed in compiz:
status: Confirmed → Fix Released
Revision history for this message
Adriaan Peeters (apeeters) wrote :

/apps/metacity/global_keybindings/switch_to_workspace_* should also be copied over (to /apps/compiz/general/allscreens/options/switch_to_desktop_*_key).

Revision history for this message
Travis Watkins (amaranth) wrote :

Those don't exist anymore.

Revision history for this message
Cameron Braid (cameron-braid) wrote :

This issue has re-appeared in jaunty

Revision history for this message
Jonathan Groll (jonathanjgster) wrote :

This issue has actually not re-appeared in jaunty. But the compiz config settings manager does need to have the 'commands' plug in enabled. Go to System>Preferences>Compiz config settings manager from the menu. Ensure that the commands plug in has got a tick next to it.

If you don't find the compiz config manager, install package "compizconfig-settings-manager".

Changed in compiz:
importance: Undecided → Low
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.