<?xml version="1.0"?>
<!DOCTYPE devilspie SYSTEM "devilspie.dtd">

<!-- The root element is devilspie -->
<devilspie>

	<!--
	This starts a new flurb, which is a set of matchers and actions.
	This flurb matches all windows, and prints out the window name and application name
	-->
	<flurb name="Print Window Names">
		<matchers>
			<!-- this is a matcher which always returns true. The full class name must be used -->
			<matcher name="DevilsPieMatcherAlways"/>
		</matchers>
		<actions>
			<!-- this action prints out the window and application name -->
			<action name="DevilsPieActionDebug"/>
		</actions>
	</flurb>

	<!--
	This flurb is actually useful. Match any XChat window, and pin it so that it
	appears on all workspaces.
	-->
	<!--
	<flurb name="X-Chat on all Desktops">
		<matchers>
			<matcher name="DevilsPieMatcherWindowName">
				<property name="application_name" value="Xchat"/>
			</matcher>
		</matchers>
		<actions>
			<action name="DevilsPieActionSetWorkspace">
				<property name="pinned" value="TRUE"/>
			</action>
		</actions>
	</flurb>

	<flurb>
		<matchers>
			<matcher name="DevilsPieMatcherWindowName">
				<property name="window_title" value="gnome-panel"/>
			</matcher>
		</matchers>
		<actions>
			<action name="DevilsPieActionLayer">
				<property name="above" value="FALSE"/>
			</action>
		</actions>
	</flurb>
	-->

	<!--
	This will put all GNOME Calculators on the second workspace.
	Note that the workspace number is a 1-based index, not a
	0-based index.
	-->
	<!--
	<flurb>
		<matchers>
			<matcher name="DevilsPieMatcherWindowName">
				<property name="application_name" value="Gnome-calculator"/>
			</matcher>
		</matchers>
		<actions>
			<action name="DevilsPieActionSetWorkspace">
				<property name="workspace_index" value="2"/>
			</action>
			<action name="DevilsPieActionHide">
				<property name="skip_tasklist" value="TRUE"/>
			</action>
		</actions>
	</flurb>
	-->


	<!--
	Start Galeon browser without window decorations on 3rd workspace
	-->
	<!--
	<flurb>
		<matchers>
			<matcher name="DevilsPieMatcherWindowName">
				<property name="application_name" value="Galeon"/>
			</matcher>
		</matchers>
		<actions>
			<action name="DevilsPieActionDecorate">
				<property name="decorated" value="FALSE"/>
			</action>
			<action name="DevilsPieActionSetWorkspace">
				<property name="workspace_index" value="3"/>
			</action>
		</actions>
	</flurb>
	-->

	<!--
	Move all GNOME Dictionary windows to 200x200, 100 px wide and 50 px high.
	-->
	<flurb>
		<matchers>
			<matcher name="DevilsPieMatcherWindowName">
				<property name="application_name" value="gnome-dictionary"/>
			</matcher>
		</matchers>
		<actions>
			<action name="DevilsPieActionSetGeometry">
				<!--
				<property name="xoffset" value="200"/>
				<property name="yoffset" value="200"/>
				-->
				<property name="width" value="600"/>
				<property name="height" value="800"/>
			</action>
		</actions>
	</flurb>

	<flurb>
		<matchers>
			<matcher name="DevilsPieMatcherWindowName">
				<property name="window_title" value="Search for Files"/>
			</matcher>
		</matchers>
		<actions>
			<action name="DevilsPieActionSetGeometry">
				<property name="xoffset" value="400"/>
				<property name="yoffset" value="200"/>
				<property name="width" value="800"/>
				<property name="height" value="800"/>
			</action>
		</actions>
	</flurb>

	<flurb>
		<matchers>
			<matcher name="DevilsPieMatcherWindowName">
				<property name="window_role" value="gauss_rle"/>
			</matcher>
		</matchers>
		<actions>
			<!--
			<action name="DevilsPieActionSetGeometry">
				<property name="xoffset" value="500"/>
				<property name="yoffset" value="200"/>
				<property name="width" value="400"/>
				<property name="height" value="600"/>
			</action>
			-->
			<action name="DevilsPieActionSetWintype">
				<property name="wintype" value="DIALOG"/>
			</action>
			<action name="DevilsPieActionLayer">
				<property name="above" value="TRUE"/>
			</action>
		</actions>
	</flurb>
	<flurb>
		<matchers>
			<matcher name="DevilsPieMatcherWindowName">
				<property name="window_role" value="colortoalpha"/>
			</matcher>
		</matchers>
		<actions>
			<!--
			<action name="DevilsPieActionSetGeometry">
				<property name="xoffset" value="500"/>
				<property name="yoffset" value="200"/>
				<property name="width" value="400"/>
				<property name="height" value="600"/>
			</action>
			-->
			<action name="DevilsPieActionSetWintype">
				<property name="wintype" value="DIALOG"/>
			</action>
			<action name="DevilsPieActionLayer">
				<property name="above" value="TRUE"/>
			</action>
		</actions>
	</flurb>
	<flurb>
		<matchers>
			<matcher name="DevilsPieMatcherWindowName">
				<property name="window_role" value="screenshot"/>
			</matcher>
		</matchers>
		<actions>
			<action name="DevilsPieActionSetWintype">
				<property name="wintype" value="DIALOG"/>
			</action>
			<action name="DevilsPieActionLayer">
				<property name="above" value="TRUE"/>
			</action>
			<action name="DevilsPieActionSetWorkspace">
				<property name="pinned" value="TRUE"/>
			</action>
		</actions>
	</flurb>
	<flurb>
		<matchers>
			<matcher name="DevilsPieMatcherWindowName">
				<property name="window_title" value="Save Screenshot"/>
			</matcher>
		</matchers>
		<actions>
			<action name="DevilsPieActionSetWintype">
				<property name="wintype" value="DIALOG"/>
			</action>
			<action name="DevilsPieActionLayer">
				<property name="above" value="TRUE"/>
			</action>
			<action name="DevilsPieActionSetWorkspace">
				<property name="pinned" value="TRUE"/>
			</action>
		</actions>
	</flurb>
	<flurb>
		<matchers>
			<matcher name="DevilsPieMatcherWindowName">
				<property name="window_title" value="Specify an ESSID"/>
			</matcher>
		</matchers>
		<actions>
			<action name="DevilsPieActionLayer">
				<property name="above" value="TRUE"/>
			</action>
		</actions>
	</flurb>
	<flurb>
		<matchers>
			<matcher name="DevilsPieMatcherWindowName">
				<property name="window_title" value="Connection Information"/>
			</matcher>
		</matchers>
		<actions>
			<action name="DevilsPieActionLayer">
				<property name="above" value="TRUE"/>
			</action>
		</actions>
	</flurb>
</devilspie>

