I have the following scripts in my $PATH: matlab-ctrl.py #!/usr/bin/python2 from subprocess import call from subprocess import check_output import sys wcmd = ["xdotool","search","--name","MatlabT"] w = check_output(wcmd) w = w.replace('
','') if len(sys.argv) > 1: s = sys.argv[1] cmd = ["xdotool","key","--window",w] for i in range(len(s)): cmd.append(s[i]) cmd.append("Return") call(cmd) matlab-launch.sh
Attributes | Values |
---|
rdfs:label
| |
rdfs:comment
| - I have the following scripts in my $PATH: matlab-ctrl.py #!/usr/bin/python2 from subprocess import call from subprocess import check_output import sys wcmd = ["xdotool","search","--name","MatlabT"] w = check_output(wcmd) w = w.replace('
','') if len(sys.argv) > 1: s = sys.argv[1] cmd = ["xdotool","key","--window",w] for i in range(len(s)): cmd.append(s[i]) cmd.append("Return") call(cmd) matlab-launch.sh
|
Version
| |
dbkwik:vim/property/wikiPageUsesTemplate
| |
Previous
| |
Category
| |
Subpage
| |
Complexity
| |
Created
| |
ID
| |
NEXT
| |
abstract
| - I have the following scripts in my $PATH: matlab-ctrl.py #!/usr/bin/python2 from subprocess import call from subprocess import check_output import sys wcmd = ["xdotool","search","--name","MatlabT"] w = check_output(wcmd) w = w.replace('
','') if len(sys.argv) > 1: s = sys.argv[1] cmd = ["xdotool","key","--window",w] for i in range(len(s)): cmd.append(s[i]) cmd.append("Return") call(cmd) matlab-launch.sh #!/bin/bash texfile="$1" terminal -e "/opt/MATLAB/R2011a/bin/matlab -r clc -nosplash -nodesktop" -T MatlabT --hide-menubar &> /dev/null & # try to return focus to GVIM xdotool search --class --name "${texfile}.*GVIM" windowactivate &>/dev/null exit 0
|