Advertisement
edps

Launcher-Tint2

Apr 1st, 2012
1,239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. #!/bin/bash
  2.  if [ $# -lt 1 ]
  3.  then
  4.    echo "Usage: `basename $0` {executable_name parameters}"
  5.    exit 1
  6.  fi
  7.  
  8.  [ "`wmctrl -lx | tr -s ' ' | cut -d' ' -f1-3 | grep -i $1`" ] || (($*&) && (sl$
  9.  for win in `wmctrl -lx | tr -s ' ' | cut -d' ' -f1-3 | grep -i $1 | cut -d' ' $
  10.  do
  11.      wmctrl -i -a $win
  12.  done
  13.  
  14.  exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement