+++ /dev/null
-<HTML>
-<HEAD>
- <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-15">
- <META NAME="Author" CONTENT="frederik.vanrenterghem@chello.be (Frederik Vanrenterghem)">
- <META NAME="Description" CONTENT="Personal homepage - Pictures">
- <TITLE>frederik.gotdns.org:1976 - e_changefocus.sh</TITLE>
-</HEAD>
-<BODY>
-<!--#include virtual='/header.shtml' -->
-<H1>e_changefocus.sh</h1>
-<P>
-<B>Purpose:</B> This script was written to be bound to the extra keys on my Logitech Cordless Desktop Deluxe wireless keyboard. This way, I can click on f.i. the E-Mail button to either launch my mail program, or transfer the application to the current desktop.<BR>
-</P>
-<P>
-<B>Requirements:</B> <a href="http://www.enlightenment.org/main/pages.html">Enlightenment window manager</A>
-</P>
-<P>
-<B>Script: </B>
-<pre>
-<font color="0000ff"><strong>#!/bin/bash</strong></font>
-
-<font color="#444444"># This script gets the current desktop and area</font>
-<font color="#444444"># and checks if the prog $1 (identifier) is running</font>
-<font color="#444444"># and moves a running $1 to current desktop/area
-# or starts $2 (command)</font>
-<font color="#444444"># e.g. $1 = Evolution and $2 = evolution
-</font>
-eesh -ewait <font color="#008000">"goto_desktop ?"</font>| \
-cut -f2 -d: |\
-while read desktop; do
- eesh -ewait <font color="#008000">"goto_area ?"</font>| \
- cut -f2 -d: |\
- while read area; do
- if eesh -ewait <font color="#008000">"window_list"</font> | grep <font color="#2040a0">$1</font>
- then
- eesh -ewait <font color="#008000">"window_list"</font> | \
- grep <font color="#2040a0">$1</font>| \
- cut -f1 -d: |\
- while read win_id; do
- eesh -e <font color="#008000">"win_op ${win_id} move 80 0"</font>;
- eesh -e <font color="#008000">"win_op ${win_id} desk ${desktop}"</font>;
- eesh -e <font color="#008000">"win_op ${win_id} area ${area}"</font>;
- done
- else
- <font color="#2040a0">$2</font> &
- fi
- done
-done
-</pre>
-
-Syntax highlighted by <a href="http://www.palfrader.org/code2html">Code2HTML</a>, v. 0.9.1
-</P>
-<!--#include virtual='/footer.shtml' -->
-</HTML>
-</BODY>