Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ $# -lt 1 ]
- then
- echo "Usage: `basename $0` {executable_name parameters}"
- exit 1
- fi
- [ "`wmctrl -lx | tr -s ' ' | cut -d' ' -f1-3 | grep -i $1`" ] || (($*&) && (sl$
- for win in `wmctrl -lx | tr -s ' ' | cut -d' ' -f1-3 | grep -i $1 | cut -d' ' $
- do
- wmctrl -i -a $win
- done
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement