笔记帖 发一个自用的 openbox 配置 rc.xml

仅供存放个人的配置文件,不要在本版发问。
回复
aihaozhe2
帖子: 295
注册时间: 2009-08-19 20:21

笔记帖 发一个自用的 openbox 配置 rc.xml

#1

帖子 aihaozhe2 » 2010-03-26 18:21

这段比较简单,只是自己常用的选项。

代码: 全选

<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
	<resistance>
		<strength>20</strength>
		<screen_edge_strength>20</screen_edge_strength>
	</resistance>
	<focus>
		<focusNew>yes</focusNew>
		<followMouse>no</followMouse>
		<underMouse>no</underMouse>
	</focus>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
	<placement>
		<policy>Smart</policy>
		<center>yes</center>
		<monitor>Any</monitor>
	</placement>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
	<theme>
		<name>Clearlooks</name>
		<titleLayout></titleLayout>
		<keepBorder>yes</keepBorder>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
		<font place="ActiveWindow">
			<name>sans</name>	<size>8</size>	<weight>bold</weight>	<slant>normal</slant>
		</font>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
		<font place="InactiveWindow">
			<name>sans</name>	<size>8</size>	<weight>bold</weight>	<slant>normal</slant>
		</font>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
		<font place="MenuHeader">
			<name>sans</name>	<size>9</size>	<weight>normal</weight>	<slant>normal</slant>
		</font>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
		<font place="MenuItem">
			<name>snas</name>	<size>9</size>	<weight>normal</weight>	<slant>normal</slant>
		</font>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
		<font place="OnScreenDisplay">
			<name>sans</name>	<size>9</size>	<weight>bold</weight>	<slant>normal</slant>
		</font>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	</theme>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
	<desktops>
		<number>2</number>
		<firstdesk>1</firstdesk>
		<names>
			<name>desktop1</name>
			<name>desktop2</name>
		</names>
		<popupTime>875</popupTime>
	</desktops>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
	<resize>
		<drawContents>yes</drawContents>
		<popupShow>Always</popupShow>
		<popupPosition>Center</popupPosition>
	</resize>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
	<margins>
		<top>0</top>
		<bottom>0</bottom>
		<left>0</left>
		<right>0</right>
	</margins>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
	<keyboard>
		<chainQuitKey>C-g</chainQuitKey>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
		<keybind key="A-0xea">		<action name="DesktopLeft"></action>		</keybind>
		<keybind key="A-0xe9">		<action name="DesktopRight"></action>		</keybind>
		<keybind key="C-A-0xea">	<action name="SendToDesktopLeft"></action>	</keybind>
		<keybind key="C-A-0xe9">	<action name="SendToDesktopRight"></action>	</keybind>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
		<keybind key="A-Escape">	<action name="Close"/>				</keybind>
		<keybind key="A-Up">		<action name="ToggleMaximizeFull"/>		</keybind>
		<keybind key="A-Down">		<action name="Iconify"/>			</keybind>
		<keybind key="A-Tab">		<action name="NextWindow"/>			</keybind>
		<keybind key="A-S-Tab">		<action name="PreviousWindow"/>			</keybind>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
		<keybind key="A-x">
			<action name="Execute">	<command>xterm</command>	</action>	</keybind>
		<keybind key="A-r">
			<action name="Execute">	<command>rox</command>		</action>	</keybind>
		<keybind key="A-w">
			<action name="Execute">	<command>iceweasel</command>	</action>	</keybind>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	</keyboard>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
	<mouse>
		<dragThreshold>1</dragThreshold>
		<doubleClickTime>200</doubleClickTime>
		<screenEdgeWarpTime>200</screenEdgeWarpTime>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
		<context name="Frame">
			<mousebind button="A-Left" action="Drag">	<action name="move"/>	</mousebind>
			<mousebind button="A-Right" action="Drag">	<action name="Resize"/>	</mousebind>
		</context>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
		<context name="Client">
			<mousebind button="Left" action="Press">
				<action name="Focus"/>	<action name="Raise"/>	</mousebind>
			<mousebind button="Middle" action="Press">
				<action name="Focus"/>	<action name="Raise"/>	</mousebind>
			<mousebind button="Right" action="Press">
				<action name="Focus"/>	 <action name="Raise"/>	</mousebind>
		</context>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
		<context name="Desktop">
			<mousebind button="Left" action="Press">
				<action name="Focus"/>	<action name="Raise"/>	</mousebind>
			<mousebind button="Right" action="Press">
				<action name="Focus"/>	 <action name="Raise"/>	</mousebind>
		</context>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
		<context name="Root">
			<mousebind button="Right" action="Press">
				<action name="ShowMenu">	<menu>root-menu</menu>	</action>
			</mousebind>
		</context>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	</mouse>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
	<menu>
		<file>menu.xml</file>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
		<hideDelay>200</hideDelay>
		<middle>no</middle>
		<submenuShowDelay>100</submenuShowDelay>
		<applicationIcons>yes</applicationIcons>
		<manageDesktops>no</manageDesktops>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	</menu>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
	<applications>
		<application class="*">
			<decor>no</decor>
		</application>
	</applications>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
</openbox_config>
发上来,这格式不好看了。。。还是在vim下的好,都是对齐的。。凑合看吧。。
头像
wowoto
帖子: 3050
注册时间: 2009-04-11 12:17
系统: windows7

Re: 笔记帖 发一个自用的 openbox 配置 rc.xml

#2

帖子 wowoto » 2010-03-26 18:40

论坛有专门放个人配置的地方:个人配置文件存放点
wowoto>ubuntu8.04>ubuntu9.04>Archlinux>FreeBSD8.0>Archlinux & end here.
回复