Monday, November 26, 2012

Make ALT+TAB to work in fallback mode of Ubuntu 12.04 without CCSM

 

I was really frustrated with ALT+TAB not working in ubuntu 12.04 in fallback mode. I tried many things as suggested by many other bloggers. Some suggested installing compizconfig-settings-manager but I don’t like that solution. This solution was actually suggested by arnulf-heimsbakk in the bug 971051. His solution is buried deep in the bug report. I honestly thing writing would help others. Here is the code


cat <<EOF > /etc/xdg/autostart/metno-switcher-fix.desktop
[Desktop Entry]
Name=metno-switcher-fix
Comment=ALT+TAB hotfix for compiz fallback session
Exec=bash -c "test -f ~/.metno-switcher-fix || /usr/bin/gconftool-2 --set --type list --list-type=string /apps/compiz-1/general/screen0/options/active_plugins '[core,composite,opengl,compiztoolbox,decor,vpswitch,snap,mousepoll,resize,place,move,wall,grid,regex,imgpng,session,gnomecompat,animation,fade,workarounds,scale,expo,ezoom,staticswitcher]' && touch ~/.metno-switcher-fix"
Terminal=false
Type=Application
OnlyShowIn=GNOME;
X-GNOME-Autostart-Delay=2
EOF