特殊:Badtitle/NS100:CompositeManager/Xgl/NestedXgl:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Oneleaf留言 | 贡献
新页面: {{From|https://help.ubuntu.com/community/CompositeManager/Xgl/NestedXgl}} {{Languages|UbuntuHelp:CompositeManager/Xgl/NestedXgl}} Here's how to get XGL running in a window on your regular...
 
Wikibot留言 | 贡献
无编辑摘要
第2行: 第2行:
{{Languages|UbuntuHelp:CompositeManager/Xgl/NestedXgl}}
{{Languages|UbuntuHelp:CompositeManager/Xgl/NestedXgl}}
Here's how to get XGL running in a window on your regular desktop.
Here's how to get XGL running in a window on your regular desktop.
 
# Install XGL and compiz packages as described on the [[UbuntuHelp:CompositeManager/Xgl]] page
** Install XGL and compiz packages as described on the [[UbuntuHelp:CompositeManager/Xgl]] page
2. Create a shell script in ~/bin, called nested-xgl-session
** Create a shell script in ~/bin, called nested-xgl-session
 
<pre><nowiki>
<pre><nowiki>
#!/bin/sh
#!/bin/sh
第14行: 第12行:
gnome-session
gnome-session
</nowiki></pre>
</nowiki></pre>
 
3. Create a shell script in ~/bin, call it nested-xgl
** Create a shell script in ~/bin, call it nested-xgl
 
<pre><nowiki>
<pre><nowiki>
#!/bin/sh
#!/bin/sh
startx `dirname $0`/nested-xgl-session -- /usr/bin/Xgl :10 "$@"
startx `dirname $0`/nested-xgl-session -- /usr/bin/Xgl :10 "$@"
</nowiki></pre>
</nowiki></pre>
 
4. Make both scripts executable (chmod +x ~/bin/nested-xgl*)
** Make both scripts executable (chmod +x ~/bin/nested-xgl*)
 
Now run 'nested-xgl' in a terminal, and you'll get Xglx with a GNOME desktop inside a window.
Now run 'nested-xgl' in a terminal, and you'll get Xglx with a GNOME desktop inside a window.
Note that most of the keyboard/mouse bindings (described on the [[UbuntuHelp:CompositeManager/Xgl]] page) do not work, because they are intercepted by your regular window manager, and Compiz never sees them.
Note that most of the keyboard/mouse bindings (described on the [[UbuntuHelp:CompositeManager/Xgl]] page) do not work, because they are intercepted by your regular window manager, and Compiz never sees them.
A curious side effect is that keyboard autorepeating gets disabled after I run the nested-xgl script.  'xset r on' restores it.
A curious side effect is that keyboard autorepeating gets disabled after I run the nested-xgl script.  'xset r on' restores it.
------
------
[[category:CategoryDocumentation]]
[[category:CategoryDocumentation]]


[[category:UbuntuHelp]]
[[category:UbuntuHelp]]

2007年11月30日 (五) 16:35的版本

{{#ifexist: :CompositeManager/Xgl/NestedXgl/zh | | {{#ifexist: CompositeManager/Xgl/NestedXgl/zh | | {{#ifeq: {{#titleparts:CompositeManager/Xgl/NestedXgl|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:CompositeManager/Xgl/NestedXgl|1|-1|}} | zh | | }}

Here's how to get XGL running in a window on your regular desktop.

  1. Install XGL and compiz packages as described on the UbuntuHelp:CompositeManager/Xgl page

2. Create a shell script in ~/bin, called nested-xgl-session

#!/bin/sh
unset SESSION_MANAGER
compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher
gnome-window-decorator &
gnome-settings-daemon &
gnome-session

3. Create a shell script in ~/bin, call it nested-xgl

#!/bin/sh
startx `dirname $0`/nested-xgl-session -- /usr/bin/Xgl :10 "$@"

4. Make both scripts executable (chmod +x ~/bin/nested-xgl*) Now run 'nested-xgl' in a terminal, and you'll get Xglx with a GNOME desktop inside a window. Note that most of the keyboard/mouse bindings (described on the UbuntuHelp:CompositeManager/Xgl page) do not work, because they are intercepted by your regular window manager, and Compiz never sees them. A curious side effect is that keyboard autorepeating gets disabled after I run the nested-xgl script. 'xset r on' restores it.