spacepaste
new
Paste details
reply
|
raw
#!/bin/bash
sh -c "/home/warren/Downloads/pycharm-community-2016.2/bin/pycharm.sh" %f &
pid=$! ; until wmctrl -l -p | grep -i "$1" &>/dev/null ;
do echo "Waiting for window" ; sleep .5 ; done; wmctrl -r $1 -t 3