+++ /dev/null
-<HTML>
-<HEAD>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">
- <meta name="author" content="Frederik Vanrenterghem">
- <META NAME="Description" CONTENT="Personal homepage - Script">
- <TITLE>frederik.gotdns.org:1976 - e_launchOrMoveApp.sh</TITLE>
-</HEAD>
-<BODY>
-<!--#include virtual='/header.shtml' -->
-<H1>e_launchOrMoveApp.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>
-<table border="1" cellpadding="6" bgcolor="#ffeeee" width=100%><tr><td>
-<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>
-</td></tr></table>
-</P>
-and in keybindings.cfg:
-<table border="1" cellpadding="6" bgcolor="#ffeeee" width=100%><tr><td>
-<pre>
-
-__NEXT_ACTION
- __KEY logitech_mail
- __EVENT __KEY_PRESS
- __ACTION __A_EXEC /scripts/e_launchOrMoveApp.sh Evolution evolution
-</pre>
-</td></tr></table>
-</P>
-<!--#include virtual='/footer.shtml' -->
-</HTML>
-</BODY>