2014-08-29 14:24:39 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# wait till it is up, run rofi with error message
|
2016-01-07 20:27:20 +00:00
|
|
|
sleep 1 && rofi -show run -modi run &
|
2014-08-29 14:24:39 +00:00
|
|
|
RPID=$!
|
|
|
|
|
|
|
|
# send enter.
|
|
|
|
sleep 5;
|
2014-08-30 18:45:08 +00:00
|
|
|
xdotool key 'shift+slash'
|
2014-08-29 14:24:39 +00:00
|
|
|
sleep 0.4
|
2014-08-30 18:45:08 +00:00
|
|
|
xdotool key 'shift+slash'
|
2014-08-29 14:24:39 +00:00
|
|
|
sleep 0.4
|
2014-08-30 18:45:08 +00:00
|
|
|
xdotool key 'shift+slash'
|
2014-08-29 14:24:39 +00:00
|
|
|
sleep 0.4
|
2014-08-30 18:45:08 +00:00
|
|
|
xdotool key Escape
|
2014-08-29 14:24:39 +00:00
|
|
|
|
|
|
|
# Get result, kill xvfb
|
|
|
|
wait ${RPID}
|
|
|
|
RETV=$?
|
2014-08-29 14:39:11 +00:00
|
|
|
|
|
|
|
sleep 1
|
|
|
|
|
2014-08-29 14:24:39 +00:00
|
|
|
exit ${RETV}
|