]> git.vanrenterghem.biz Git - www.vanrenterghem.biz.git/blobdiff - Linux/e_launchOrMoveApp_sh.shtml
Verwijder verouderde bestanden.
[www.vanrenterghem.biz.git] / Linux / e_launchOrMoveApp_sh.shtml
diff --git a/Linux/e_launchOrMoveApp_sh.shtml b/Linux/e_launchOrMoveApp_sh.shtml
deleted file mode 100644 (file)
index 72e9f92..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<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>vanrenterghem.biz - e_launchOrMoveApp.sh</TITLE>
-<link rel="stylesheet" href="/styles/header.css" type="text/css" />
-<link rel="stylesheet" href="/styles/main.css" type="text/css" />  
-</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">&quot;goto_desktop ?&quot;</font>| \
-cut -f2 -d: |\
-while read desktop; do
-       eesh -ewait <font color="#008000">&quot;goto_area ?&quot;</font>| \
-       cut -f2 -d: |\
-       while read area; do
-               if eesh -ewait <font color="#008000">&quot;window_list&quot;</font> | grep <font color="#2040a0">$1</font> 
-               then
-                       eesh -ewait <font color="#008000">&quot;window_list&quot;</font> | \
-                        grep <font color="#2040a0">$1</font>| \
-                       cut -f1 -d: |\
-                       while read win_id; do 
-                               eesh -e <font color="#008000">&quot;win_op ${win_id} move 80 0&quot;</font>; 
-                               eesh -e <font color="#008000">&quot;win_op ${win_id} desk ${desktop}&quot;</font>;
-                               eesh -e <font color="#008000">&quot;win_op ${win_id} area ${area}&quot;</font>;
-                       done 
-               else 
-                       <font color="#2040a0">$2</font> &amp;
-               fi
-       done
-done
-</pre>
-</td></tr></table>
-</P>
-and in ~/.enlightenment/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>