特殊:Badtitle/NS100:ReplaceMetacityWithOpenbox:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第17行: | 第17行: | ||
# Open ~/.gnomerc in your favorite text editor and add this line: | # Open ~/.gnomerc in your favorite text editor and add this line: | ||
<pre><nowiki> | <pre><nowiki> | ||
export WINDOW_MANAGER=/usr/bin/openbox | export WINDOW_MANAGER=/usr/bin/openbox | ||
</nowiki></pre> | </nowiki></pre> | ||
If ~/.gnomerc doesn't exist, simply create it and add the above line into it. The next time you log into gnome, openbox will be loaded as your window manager instead of Metacity. | If ~/.gnomerc doesn't exist, simply create it and add the above line into it. The next time you log into gnome, openbox will be loaded as your window manager instead of Metacity. | ||
# Log out and back in so that openbox will be loaded. Then, launch obconf (Applications -> Other -> ObConf) and tweak the openbox settings to your liking. | # Log out and back in so that openbox will be loaded. Then, launch obconf (Applications -> Other -> ObConf) and tweak the openbox settings to your liking. |
2007年12月6日 (四) 10:52的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/ReplaceMetacityWithOpenbox }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/af | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|Afrikaans| [[::ReplaceMetacityWithOpenbox/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/ar | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|العربية| [[::ReplaceMetacityWithOpenbox/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/az | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|azərbaycanca| [[::ReplaceMetacityWithOpenbox/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/bcc | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|جهلسری بلوچی| [[::ReplaceMetacityWithOpenbox/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/bg | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|български| [[::ReplaceMetacityWithOpenbox/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/br | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|brezhoneg| [[::ReplaceMetacityWithOpenbox/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/ca | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|català| [[::ReplaceMetacityWithOpenbox/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/cs | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|čeština| [[::ReplaceMetacityWithOpenbox/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/de | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|Deutsch| [[::ReplaceMetacityWithOpenbox/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/el | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|Ελληνικά| [[::ReplaceMetacityWithOpenbox/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/es | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|español| [[::ReplaceMetacityWithOpenbox/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/fa | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|فارسی| [[::ReplaceMetacityWithOpenbox/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/fi | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|suomi| [[::ReplaceMetacityWithOpenbox/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/fr | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|français| [[::ReplaceMetacityWithOpenbox/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/gu | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|ગુજરાતી| [[::ReplaceMetacityWithOpenbox/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/he | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|עברית| [[::ReplaceMetacityWithOpenbox/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/hu | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|magyar| [[::ReplaceMetacityWithOpenbox/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/id | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|Bahasa Indonesia| [[::ReplaceMetacityWithOpenbox/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/it | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|italiano| [[::ReplaceMetacityWithOpenbox/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/ja | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|日本語| [[::ReplaceMetacityWithOpenbox/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/ko | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|한국어| [[::ReplaceMetacityWithOpenbox/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/ksh | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|Ripoarisch| [[::ReplaceMetacityWithOpenbox/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/mr | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|मराठी| [[::ReplaceMetacityWithOpenbox/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/ms | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|Bahasa Melayu| [[::ReplaceMetacityWithOpenbox/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/nl | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|Nederlands| [[::ReplaceMetacityWithOpenbox/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/no | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|norsk| [[::ReplaceMetacityWithOpenbox/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/oc | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|occitan| [[::ReplaceMetacityWithOpenbox/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/pl | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|polski| [[::ReplaceMetacityWithOpenbox/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/pt | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|português| [[::ReplaceMetacityWithOpenbox/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/ro | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|română| [[::ReplaceMetacityWithOpenbox/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/ru | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|русский| [[::ReplaceMetacityWithOpenbox/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/si | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|සිංහල| [[::ReplaceMetacityWithOpenbox/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/sq | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|shqip| [[::ReplaceMetacityWithOpenbox/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/sr | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|српски / srpski| [[::ReplaceMetacityWithOpenbox/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/sv | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|svenska| [[::ReplaceMetacityWithOpenbox/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/th | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|ไทย| [[::ReplaceMetacityWithOpenbox/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/tr | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|Türkçe| [[::ReplaceMetacityWithOpenbox/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/vi | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|Tiếng Việt| [[::ReplaceMetacityWithOpenbox/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/yue | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|粵語| [[::ReplaceMetacityWithOpenbox/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/zh | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|中文| [[::ReplaceMetacityWithOpenbox/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/zh-hans | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|中文(简体)| [[::ReplaceMetacityWithOpenbox/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox | UbuntuHelp:ReplaceMetacityWithOpenbox | {{#if: | :}}ReplaceMetacityWithOpenbox}}/zh-hant | • {{#if: UbuntuHelp:ReplaceMetacityWithOpenbox|中文(繁體)| [[::ReplaceMetacityWithOpenbox/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:ReplaceMetacityWithOpenbox|:ReplaceMetacityWithOpenbox|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :ReplaceMetacityWithOpenbox/zh | | {{#ifexist: ReplaceMetacityWithOpenbox/zh | | {{#ifeq: {{#titleparts:ReplaceMetacityWithOpenbox|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:ReplaceMetacityWithOpenbox|1|-1|}} | zh | | }}
Using Openbox as your Window Manager in Gnome
This tutorial is geared toward replacing the Metacity window manager with the openbox window manager in gnome, but this information can be used as the basis for replacing Metacity with any other window manager which is compatible with the gnome desktop environment. Nautilus manages the desktop and the desktop right-click menu in gnome. I have always had a dislike for the gnome desktop right-click menu as it isn't very configurable. I found that you can replace Metacity (the default window manager in gnome) with another window manager (openbox, enlightenment, fluxbox, etc.) that has a nice desktop menu. I have always liked fluxbox and openbox, but it seems easier to get openbox working quickly in gnome. So, I am going to outline how to install and setup the openbox window manager in gnome so you can take advantage of the configurable desktop menu which openbox provides.
What is openbox?
First of all, visit http://icculus.org/openbox/ and see if openbox will suit your needs. You can also visit http://xwinman.org/ for a nice listing of other window managers - some will work well in gnome, others won't, you'll have to do some research for some of these. I do know that openbox works very well in gnome and is quite easy to setup.
Installing Openbox
You'll need to install the following packages from the Universe repository:
sudo apt-get install openbox openbox-themes obconf
Please see https://help.ubuntu.com/community/Repositories for information about adding repositories to your /etc/apt/sources.list. I also recommend installing obmenu, but this app is totally optional. obmenu provides a nice gui for editing the openbox menu. Otherwise, you can just edit the /etc/xdg/openbox/menu.xml file in your favorite text editor. obmenu can be found at http://obmenu.sourceforge.net/
Run Openbox instead of Metacity when gnome starts
- You'll need to change a setting so that the openbox menu will be visible. Open gconf-editor (Applications -> System Tools -> Configuration Editor) and uncheck the apps/nautilus/preferences/show_desktop key. This will disable the nautilus desktop menu so that the openbox menu will be displayed.
- Open ~/.gnomerc in your favorite text editor and add this line:
export WINDOW_MANAGER=/usr/bin/openbox
If ~/.gnomerc doesn't exist, simply create it and add the above line into it. The next time you log into gnome, openbox will be loaded as your window manager instead of Metacity.
- Log out and back in so that openbox will be loaded. Then, launch obconf (Applications -> Other -> ObConf) and tweak the openbox settings to your liking.
- For those of you who like to use the Run Dialog (Alt+F2 in gnome), you can add this command to the openbox menu to get the Run Dialog back: gnome-panel-control --run-dialog
Further reading
Openbox FAQ, documentation and screenshots can be found at http://icculus.org/openbox/ More openbox themes can be found at http://themes.freshmeat.net/browse/1086/