<Global>
	<DefaultKeyboard>CyMotion Master</DefaultKeyboard>
	<AutoStart>false</AutoStart>
	<ConfigLevel>0</ConfigLevel>
	<XPressList>mouse</XPressList>
	<OSD>true</OSD>
	<OSDTime>4</OSDTime>
	<OutputPlugin>kde-gui.so</OutputPlugin>
</Global>

<Actions>
	<Key name="XF86Back">
		<SendKeyAction name="Konqueror - Back">
			<Application>konqueror,Konqueror</Application>
			<Keys>Alt_L+Left</Keys>
		</SendKeyAction>
		<SendKeyAction name="Mozilla - Back">
			<Application>Mozilla-bin</Application>
			<Keys>Alt_L+Left</Keys>
		</SendKeyAction>
		<SendKeyAction name="Firefox - Back">
			<Application>Firefox-bin</Application>
			<Keys>Alt_L+Left</Keys>
		</SendKeyAction>
		<SendKeyAction name="Epiphany - Back">
			<Application>Epiphany,Epiphany-bin</Application>
			<Keys>Alt_L+Left</Keys>
		</SendKeyAction>
	</Key>
	<Key name="XF86Forward">
		<SendKeyAction name="Konqueror - Forward">
			<Application>konqueror,Konqueror</Application>
			<Keys>Alt_L+Right</Keys>
		</SendKeyAction>
		<SendKeyAction name="Mozilla - Forward">
			<Application>Mozilla-bin</Application>
			<Keys>Alt_L+Right</Keys>
		</SendKeyAction>
		<SendKeyAction name="Firefox - Forward">
			<Application>Firefox-bin</Application>
			<Keys>Alt_L+Right</Keys>
		</SendKeyAction>
		<SendKeyAction name="Epiphany - Forward">
			<Application>Epiphany,Epiphany-bin</Application>
			<Keys>Alt_L+Right</Keys>
		</SendKeyAction>
	</Key>
	<Key name="XF86Stop">
		<SendKeyAction name="Konqueror - Stop">
			<Application>konqueror,Konqueror</Application>
			<Keys>Escape</Keys>
		</SendKeyAction>
		<SendKeyAction name="Mozilla - Stop">
			<Application>Mozilla-bin</Application>
			<Keys>Escape</Keys>
		</SendKeyAction>
		<SendKeyAction name="Firefox - Stop">
			<Application>Firefox-bin</Application>
			<Keys>Escape</Keys>
		</SendKeyAction>
		<SendKeyAction name="Epiphany - Stop">
			<Application>Epiphany,Epiphany-bin</Application>
			<Keys>Escape</Keys>
		</SendKeyAction>
	</Key>
	<Key name="XF86Reload">
		<SendKeyAction name="Konqueror - Reload">
			<Application>konqueror,Konqueror</Application>
			<Keys>F5</Keys>
		</SendKeyAction>
		<SendKeyAction name="Mozilla - Reload">
			<Application>Mozilla-bin</Application>
			<Keys>Control_L+R</Keys>
		</SendKeyAction>
		<SendKeyAction name="Firefox - Reload">
			<Application>Firefox-bin</Application>
			<Keys>Control_L+R</Keys>
		</SendKeyAction>
		<SendKeyAction name="Epiphany - Reload">
			<Application>Epiphany,Epiphany-bin</Application>
			<Keys>Control_L+R</Keys>
		</SendKeyAction>
	</Key>
	<Key name="XF86Search">
		<SendKeyAction name="Konqueror - Search">
			<Application>konqueror,Konqueror</Application>
			<Keys>Control_L+F</Keys>
		</SendKeyAction>
		<SendKeyAction name="Mozilla - Search">
			<Application>Mozilla-bin</Application>
			<Keys>Control_L+F</Keys>
		</SendKeyAction>
		<SendKeyAction name="Firefox - Search">
			<Application>Firefox-bin</Application>
			<Keys>Control_L+F</Keys>
		</SendKeyAction>
		<SendKeyAction name="Epiphany - Search">
			<Application>Epiphany,Epiphany-bin</Application>
			<Keys>Control_L+F</Keys>
		</SendKeyAction>
	</Key>
	<Key name="XF86AudioPlay">
		<SendKeyAction name="MPlayer - Play/Pause">
			<Application>MPlayer</Application>
			<Keys>space</Keys>
		</SendKeyAction>
		<SendKeyAction name="Amarok - Play/Pause">
			<Application>amarokapp,Amarokapp</Application>
			<Keys>Super_L+c</Keys>
		</SendKeyAction>
		<SendKeyAction name="Kaffeine - Play/Pause">
			<Application>kaffeine,Kaffeine</Application>
			<Keys>space</Keys>
		</SendKeyAction>
		<RunCommandAction name="xmms Play/Pause">
			<Command>file=/tmp/xmms_$USER.0; if [ -e $file ]; then xmms --session 0 --play-pause; else xmms ; fi</Command>
		</RunCommandAction>
	</Key>
	<Key name="XF86AudioStop">
		<SendKeyAction name="MPlayer - Stop">
			<Application>MPlayer</Application>
			<Keys>Escape</Keys>
		</SendKeyAction>
		<SendKeyAction name="Amarok - Stop">
			<Application>amarokapp,Amarokapp</Application>
			<Keys>Super_L+v</Keys>
		</SendKeyAction>
		<SendKeyAction name="Kaffeine - Stop">
			<Application>kaffeine,Kaffeine</Application>
			<Keys>BackSpace</Keys>
		</SendKeyAction>
		<RunCommandAction name="xmms Stop Song">
			<Command>file=/tmp/xmms_$USER.0; if [ -e $file ]; then xmms --session 0 --stop; fi</Command>
		</RunCommandAction>
	</Key>
	<Key name="XF86AudioPrev">
		<SendKeyAction name="MPlayer - Skip backwards">
			<Application>MPlayer</Application>
			<Keys>Left</Keys>
		</SendKeyAction>
		<SendKeyAction name="Amarok Previous Song">
			<Application>amarokapp,Amarokapp</Application>
			<Keys>Super_L+z</Keys>
		</SendKeyAction>
		<SendKeyAction name="Kaffeine - Previous">
			<Application>kaffeine,Kaffeine</Application>
			<Keys>Up</Keys>
		</SendKeyAction>
		<RunCommandAction name="xmms - Previous Song">
			<Command>file=/tmp/xmms_$USER.0; if [ -e $file ]; then xmms --session 0 --rew; fi</Command>
		</RunCommandAction>
	</Key>
	<Key name="XF86AudioNext">
		<SendKeyAction name="MPlayer - Skip forwards">
			<Application>MPlayer</Application>
			<Keys>Right</Keys>
		</SendKeyAction>
		<SendKeyAction name="Amarok - Next Song">
			<Application>amarokapp,Amarokapp</Application>
			<Keys>Super_L+b</Keys>
		</SendKeyAction>
		<SendKeyAction name="Kaffeine - Next">
			<Application>kaffeine,Kaffeine</Application>
			<Keys>Down</Keys>
		</SendKeyAction>
		<RunCommandAction name="xmms - Next Song">
			<Command>file=/tmp/xmms_$USER.0; if [ -e $file ]; then xmms --session 0 --fwd; fi</Command>
		</RunCommandAction>
	</Key>
	<Key name="XF86Eject">
		<PluginCommandAction name="Eject CD-Rom">
			<Command>eject /dev/cdrom 1200</Command>
		</PluginCommandAction>
	</Key>
	<Key name="XF86Calculator">
		<RunCommandAction name="Calculator KCalc">
			<Command>kcalc&</Command>
		</RunCommandAction>
	</Key>
	<Key name="XF86Mail">
		<RunCommandAction name="Mail">
			<Command>kmail</Command>
		</RunCommandAction>
	</Key>
	<Key name="XF86HomePage">
		<RunCommandAction name="Home">
			<Command>konqueror $HOME</Command>
		</RunCommandAction>
	</Key>
	<Key name="XF86PowerOff">
		<RunCommandAction name="Logout KDE">
			<Command>dcop kdesktop KDesktopIface logout</Command>
		</RunCommandAction>
	</Key>
	<Key name="XF86AudioLowerVolume">
		<RunCommandAction name="Volume Down">
			<Command>aumix -v -2; text=`aumix -q | grep "vol" | sed "s/vol \([[:digit:]]*\),\([[:digit:]]*\).*/\1/"`; echo "Main Volume\n$text"</Command>
			<Repeat>aumix -v -2; text=`aumix -q | grep "vol" | sed "s/vol \([[:digit:]]*\),\([[:digit:]]*\).*/\1/"`; echo "Main Volume\n$text"</Repeat>
		</RunCommandAction>
	</Key>
	<Key name="XF86AudioRaiseVolume">
		<RunCommandAction name="Volume Up">
			<Command>aumix -v +2; text=`aumix -q | grep "vol" | sed "s/vol \([[:digit:]]*\),\([[:digit:]]*\).*/\1/"`; echo "Main Volume\n$text"</Command>
			<Repeat>aumix -v +2; text=`aumix -q | grep "vol" | sed "s/vol \([[:digit:]]*\),\([[:digit:]]*\).*/\1/"`; echo "Main Volume\n$text"</Repeat>
		</RunCommandAction>
	</Key>
	<Key name="XF86AudioMute">
		<RunCommandAction name="Mute Audio">
			<Command>file=/tmp/ckdaemon.lv; if [ -e $file ]; then lv=`cat $file`; rm $file; aumix -v $lv; echo "Main Volume\n$lv"; else lv=`aumix -q | grep "vol" | sed "s/vol \([[:digit:]]*\),\([[:digit:]]*\).*/\1/"`; echo "$lv" > $file; aumix -v 0; echo "Main Volume\nMute"; fi</Command>
		</RunCommandAction>
	</Key>
	<Key name="XF86AudioMedia">
		<PluginCommandAction name="Multimedia Applications">
			<Command>menu Multimedia</Command>
		</PluginCommandAction>
	</Key>
	<Key name="XF86ScrollUp">
		<SendKeyAction name="Scroll Up">
			<Application>*</Application>
			<Keys>Page_Up</Keys>
		</SendKeyAction>
	</Key>
	<Key name="XF86ScrollDown">
		<SendKeyAction name="Scroll Down">
			<Application>*</Application>
			<Keys>Page_Down</Keys>
		</SendKeyAction>
	</Key>
	<Key name="XF86Cut">
		<SendKeyAction name="Cut">
			<Application>*</Application>
			<Keys>Control_L+x</Keys>
		</SendKeyAction>
	</Key>
	<Key name="XF86Copy">
		<SendKeyAction name="Copy">
			<Application>*</Application>
			<Keys>Control_L+c</Keys>
		</SendKeyAction>
	</Key>
	<Key name="XF86Paste">
		<SendKeyAction name="Paste">
			<Application>*</Application>
			<Keys>Control_L+v</Keys>
		</SendKeyAction>
	</Key>
	<Key name="XF86Launch0">
		<PluginCommandAction name="Switch Desktop 1">
			<Command>desktop 1</Command>
		</PluginCommandAction>
	</Key>
	<Key name="XF86Launch1">
		<PluginCommandAction name="Switch Desktop 2">
			<Command>desktop 2</Command>
		</PluginCommandAction>
	</Key>
	<Key name="XF86Launch2">
		<PluginCommandAction name="Switch Desktop 3">
			<Command>desktop 3</Command>
		</PluginCommandAction>
	</Key>
	<Key name="Menu">
		<PluginCommandAction name="Context Menu">
			<Command>contextmenu</Command>
		</PluginCommandAction>
	</Key>
	<Key name="XF86Launch3">
		<RunCommandAction name="KMenu">
			<Command>dcop kicker kicker showKMenu</Command>
		</RunCommandAction>
	</Key>
	<Key name="Undo">
		<SendKeyAction name="Undo">
			<Application>*</Application>
			<Keys>Control_L+z</Keys>
		</SendKeyAction>
	</Key>
	<Key name="Redo">
		<SendKeyAction name="Redo">
			<Application>*</Application>
			<Keys>Control_L+Shift_L+z</Keys>
		</SendKeyAction>
		<SendKeyAction name="OpenOffice">
			<Application>OpenOffice.org 1.1.1</Application>
			<Keys>Redo</Keys>
		</SendKeyAction>
	</Key>
</Actions>

<Keyboard>
Name="CyMotion Master"
XF86Back=234
XF86Forward=233
XF86Stop=232
XF86Reload=231
XF86Search=122
XF86AudioPlay=162
XF86AudioStop=164
XF86AudioPrev=144
XF86AudioNext=153
XF86Eject=204
XF86Calculator=161
XF86Mail=236
XF86HomePage=130
XF86PowerOff=199
XF86AudioLowerVolume=174
XF86AudioRaiseVolume=176
XF86AudioMute=160
XF86AudioMedia=129
XF86ScrollUp=220
XF86ScrollDown=143
XF86Cut=188
XF86Copy=248
XF86Paste=192
XF86Launch0=159
XF86Launch1=151
XF86Launch2=171
Redo=133
Undo=135
Menu=117
XF86Launch3=168
at=116
</Keyboard>
