X-Git-Url: http://git.vanrenterghem.biz/www.vanrenterghem.biz.git/blobdiff_plain/4b1ce0d83844cfd7c55e75a60ccb239882cd62e3..83ab5456767602f2a9860a7db7247f002ec96945:/Linux/e_changefocus_sh.shtml~ diff --git a/Linux/e_changefocus_sh.shtml~ b/Linux/e_changefocus_sh.shtml~ deleted file mode 100644 index 4247b3a..0000000 --- a/Linux/e_changefocus_sh.shtml~ +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - frederik.gotdns.org:1976 - e_changefocus.sh - - - -

e_changefocus.sh

-

-Purpose: 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.
-

-

-Requirements: Enlightenment window manager -

-

-Script: -

-#!/bin/bash
-
-# This script gets the current desktop and area
-# and checks if the prog $1 (identifier) is running
-# and moves a running $1 to current desktop/area
-# or starts $2 (command)
-# e.g. $1 = Evolution and $2 = evolution
-
-eesh -ewait "goto_desktop ?"| \
-cut -f2 -d: |\
-while read desktop; do
-	eesh -ewait "goto_area ?"| \
-	cut -f2 -d: |\
-	while read area; do
-		if eesh -ewait "window_list" | grep $1 
-		then
-			eesh -ewait "window_list" | \
-                        grep $1| \
-			cut -f1 -d: |\
-			while read win_id; do 
-				eesh -e "win_op ${win_id} move 80 0"; 
-				eesh -e "win_op ${win_id} desk ${desktop}";
-				eesh -e "win_op ${win_id} area ${area}";
-			done 
-		else 
-			$2 &
-		fi
-	done
-done
-
- -Syntax highlighted by Code2HTML, v. 0.9.1 -

- - -