XglHowto
2212
Comment: Newer glitz has been uploaded to dapper
|
3982
|
Deletions are marked like this. | Additions are marked like this. |
Line 8: | Line 8: |
sudo apt-get update sudo apt-get install libgl1-mesa libglitz1 libglitz-glx1 xserver-xgl}}} |
sudo aptitude update }}} {{{ sudo aptitude install libgl1-mesa libglitz1 libglitz-glx1 xserver-xgl }}} |
Line 11: | Line 13: |
sudo apt-get install compiz-gnome | sudo aptitude install compiz-gnome |
Line 19: | Line 21: |
1. In a terminal start compiz and the Gnome window decorator (do NOT use sudo here) {{{ | 1. Log in, then in a terminal start compiz and the Gnome window decorator (do NOT use sudo here) {{{ |
Line 21: | Line 23: |
gnome-window-decorator }}} Leave out the gconf plugin if you don't have compiz-gnome installed 1. Add these commands to {{{~/.gnomerc}}} if you want this on every login (which you probably do) |
}}} {{{ nohup gnome-window-decorator & }}} Leave out the gconf plugin if you don't have compiz-gnome installed 1. Add these commands to {{{~/.gnomerc}}} if you want this on every login (which you probably do) {{{ echo "compiz --replace gconf decoration wobbly fade minimize move place resize scale switcher cube rotate zoom" >> ~/.gnomerc }}} {{{ echo "nohup gnome-window-decorator &" >> ~/.gnomerc }}} Here are the various key combinations and uses for various plugins (Super-key is the same as the windows key). You can change all of these using gconf-editor (Might be necessary since the windows key is reported not to work with xgl on some systems). /!\ The key combinations interact! If you bind something to <Alt><Ctrl>Button4 and to <Ctrl>Button4 both will be activated if you use the first! /!\ The key combinations are also passed-through to apps below the cursor. * Switch windows = Alt + Tab * Arrange and View All Windows = F12 turns on or off; clicking a window will zoom it to the front * Switch desktops on cube = Ctrl + Alt + Left/Right Arrow * Switch desktops on cube with active window following = Ctrl + Shift + Alt + Left/Right Arrow * Rotate desktop cube = Ctrl + Alt + Left-click on wallpaper and drag * Change opacity = Ctrl + Shift + Mouse wheel * Make window translucent/opaque = right-click the window's title bar and select Opacity (seems to be absent in current compiz cvs. Use the tip above to set transparency) * Zoom-in once = Super-key right-click * Zoom-in manually = Super-key + wheel mouse up * Zoom-out manually = Super-key + wheel mouse down * Move window = Alt + left-click * Snap Move window (will stick to borders) = Ctrl during move (either by Alt + left-click or by title bar) * Resize window = Alt + right-click * Display svg picture on top of cube = modify gconf db,add svg files to /apps/compiz/plugins/cube/screen0/options/svgs (restart needed) |
Here's how to get XGL working on Ubuntu Dapper. It won't ever be working on earlier versions without massive recompiling and manually installing a whole lot of things. So don't try
Many thanks to Matthew Garrett for packaging XGL so quickly and writing the e-mail that's the base of this page.
XGL is still highly experimental and not recommended for casual use.
Enable the universe repository (see AddingRepositoriesHowto)
Make sure that you have the latest mesa, libglitz1 and libglitz-glx1, xserver-xgl
sudo aptitude update
sudo aptitude install libgl1-mesa libglitz1 libglitz-glx1 xserver-xgl
Install compiz-kde and/or compiz-gnome depending on your desktop
sudo aptitude install compiz-gnome
Replace /etc/X11/X with a symlink to /usr/bin/Xgl
sudo ln -sf /usr/bin/Xgl /etc/X11/X
Close all applications and restart gdm (This will log you out!)
sudo /etc/init.d/gdm restart
Log in, then in a terminal start compiz and the Gnome window decorator (do NOT use sudo here)
compiz --replace gconf decoration wobbly fade minimize move place resize scale switcher cube rotate zoom
nohup gnome-window-decorator &
Leave out the gconf plugin if you don't have compiz-gnome installed
Add these commands to ~/.gnomerc if you want this on every login (which you probably do)
echo "compiz --replace gconf decoration wobbly fade minimize move place resize scale switcher cube rotate zoom" >> ~/.gnomerc
echo "nohup gnome-window-decorator &" >> ~/.gnomerc
Here are the various key combinations and uses for various plugins (Super-key is the same as the windows key). You can change all of these using gconf-editor (Might be necessary since the windows key is reported not to work with xgl on some systems).
The key combinations interact! If you bind something to <Alt><Ctrl>Button4 and to <Ctrl>Button4 both will be activated if you use the first!
The key combinations are also passed-through to apps below the cursor.
- Switch windows = Alt + Tab
- Arrange and View All Windows = F12 turns on or off; clicking a window will zoom it to the front
- Switch desktops on cube = Ctrl + Alt + Left/Right Arrow
- Switch desktops on cube with active window following = Ctrl + Shift + Alt + Left/Right Arrow
- Rotate desktop cube = Ctrl + Alt + Left-click on wallpaper and drag
- Change opacity = Ctrl + Shift + Mouse wheel
- Make window translucent/opaque = right-click the window's title bar and select Opacity (seems to be absent in current compiz cvs. Use the tip above to set transparency)
- Zoom-in once = Super-key right-click
- Zoom-in manually = Super-key + wheel mouse up
- Zoom-out manually = Super-key + wheel mouse down
- Move window = Alt + left-click
- Snap Move window (will stick to borders) = Ctrl during move (either by Alt + left-click or by title bar)
- Resize window = Alt + right-click
- Display svg picture on top of cube = modify gconf db,add svg files to /apps/compiz/plugins/cube/screen0/options/svgs (restart needed)
To get back to sanity (normal X):
- If you edited ~/.gnomerc in the last step of the previous part, remove the commands again
Replace /etc/X11/X with a symlink to /usr/bin/Xorg
sudo ln -sf /usr/bin/Xorg /etc/X11/X
Close all applications and restart gdm (This will log you out!)
sudo /etc/init.d/gdm restart
As noted before, these are highly experimental packages. If it crashes, this is unsurprising. Please do feel free to file bugs, but right now they'll probably just be forwarded upstream. Please do not be surprised if it doesn't work. If you're running binary drivers, things get even more complicated and there's a reasonable chance that things will fail to work in strange and unexpected ways.
Have fun, and start thinking of ways that this technology can be used for the force of good.
XglHowto (last edited 2008-08-06 17:00:40 by localhost)