Advertisement
ariyasa

wmctrl(launcher on tint2 ubuntu)

Feb 11th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 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