特殊:Badtitle/NS100:CompositeManager/Xgl/NestedXgl:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示同一用户的3个中间版本) | |||
第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. | ||
<ol><li>Install XGL and compiz packages as described on the [[UbuntuHelp:CompositeManager/Xgl|CompositeManager/Xgl]] page | |||
</li><li>Create a shell script in ~/bin, called nested-xgl-session</li></ol> | |||
<pre><nowiki> | <pre><nowiki> | ||
#!/bin/sh | #!/bin/sh | ||
第12行: | 第13行: | ||
gnome-session | gnome-session | ||
</nowiki></pre> | </nowiki></pre> | ||
<ol><li>Create a shell script in ~/bin, call it nested-xgl</li></ol> | |||
<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> | ||
<ol><li>Make both scripts executable (chmod +x ~/bin/nested-xgl*)</li></ol> | |||
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|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|CompositeManager/Xgl]] page) do not work, because they are intercepted by your regular window manager, and Compiz never sees them. |
2008年10月19日 (日) 22:23的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/CompositeManager/Xgl/NestedXgl }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/af | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|Afrikaans| [[::CompositeManager/Xgl/NestedXgl/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/ar | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|العربية| [[::CompositeManager/Xgl/NestedXgl/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/az | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|azərbaycanca| [[::CompositeManager/Xgl/NestedXgl/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/bcc | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|جهلسری بلوچی| [[::CompositeManager/Xgl/NestedXgl/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/bg | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|български| [[::CompositeManager/Xgl/NestedXgl/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/br | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|brezhoneg| [[::CompositeManager/Xgl/NestedXgl/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/ca | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|català| [[::CompositeManager/Xgl/NestedXgl/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/cs | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|čeština| [[::CompositeManager/Xgl/NestedXgl/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/de | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|Deutsch| [[::CompositeManager/Xgl/NestedXgl/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/el | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|Ελληνικά| [[::CompositeManager/Xgl/NestedXgl/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/es | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|español| [[::CompositeManager/Xgl/NestedXgl/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/fa | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|فارسی| [[::CompositeManager/Xgl/NestedXgl/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/fi | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|suomi| [[::CompositeManager/Xgl/NestedXgl/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/fr | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|français| [[::CompositeManager/Xgl/NestedXgl/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/gu | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|ગુજરાતી| [[::CompositeManager/Xgl/NestedXgl/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/he | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|עברית| [[::CompositeManager/Xgl/NestedXgl/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/hu | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|magyar| [[::CompositeManager/Xgl/NestedXgl/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/id | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|Bahasa Indonesia| [[::CompositeManager/Xgl/NestedXgl/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/it | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|italiano| [[::CompositeManager/Xgl/NestedXgl/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/ja | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|日本語| [[::CompositeManager/Xgl/NestedXgl/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/ko | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|한국어| [[::CompositeManager/Xgl/NestedXgl/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/ksh | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|Ripoarisch| [[::CompositeManager/Xgl/NestedXgl/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/mr | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|मराठी| [[::CompositeManager/Xgl/NestedXgl/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/ms | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|Bahasa Melayu| [[::CompositeManager/Xgl/NestedXgl/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/nl | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|Nederlands| [[::CompositeManager/Xgl/NestedXgl/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/no | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|norsk| [[::CompositeManager/Xgl/NestedXgl/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/oc | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|occitan| [[::CompositeManager/Xgl/NestedXgl/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/pl | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|polski| [[::CompositeManager/Xgl/NestedXgl/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/pt | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|português| [[::CompositeManager/Xgl/NestedXgl/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/ro | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|română| [[::CompositeManager/Xgl/NestedXgl/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/ru | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|русский| [[::CompositeManager/Xgl/NestedXgl/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/si | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|සිංහල| [[::CompositeManager/Xgl/NestedXgl/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/sq | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|shqip| [[::CompositeManager/Xgl/NestedXgl/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/sr | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|српски / srpski| [[::CompositeManager/Xgl/NestedXgl/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/sv | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|svenska| [[::CompositeManager/Xgl/NestedXgl/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/th | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|ไทย| [[::CompositeManager/Xgl/NestedXgl/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/tr | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|Türkçe| [[::CompositeManager/Xgl/NestedXgl/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/vi | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|Tiếng Việt| [[::CompositeManager/Xgl/NestedXgl/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/yue | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|粵語| [[::CompositeManager/Xgl/NestedXgl/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/zh | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|中文| [[::CompositeManager/Xgl/NestedXgl/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/zh-hans | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|中文(简体)| [[::CompositeManager/Xgl/NestedXgl/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl | UbuntuHelp:CompositeManager/Xgl/NestedXgl | {{#if: | :}}CompositeManager/Xgl/NestedXgl}}/zh-hant | • {{#if: UbuntuHelp:CompositeManager/Xgl/NestedXgl|中文(繁體)| [[::CompositeManager/Xgl/NestedXgl/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:CompositeManager/Xgl/NestedXgl|:CompositeManager/Xgl/NestedXgl|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#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.
- Install XGL and compiz packages as described on the CompositeManager/Xgl page
- 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
- Create a shell script in ~/bin, call it nested-xgl
#!/bin/sh startx `dirname $0`/nested-xgl-session -- /usr/bin/Xgl :10 "$@"
- 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 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.