blob: 7439a09b5b0c096ab4cf0fda53d61ab5efe2e72f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/usr/bin/env bash
# wait till it is up, run rofi with error message
sleep 1;
xterm -T MonkeySee sh &
XPID=$!
sleep 1;
xterm -T TermUnwanted sh &
TPID=$!
sleep 1;
rofi -modi window -show window > output.txt &
RPID=$!
# send enter.
sleep 5;
xdotool type 'MonkeySee'
sleep 0.4
xdotool key Return
sleep 1;
xdotool key Ctrl+d
wait ${XPID}
kill ${TPID}
# Get result, kill xvfb
wait ${RPID}
RETV=$?
exit ${RETV}
|