1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-02-03 15:34:54 -05:00
rofi/test/run_switchdialog_test.sh

24 lines
344 B
Bash
Raw Normal View History

2014-08-29 16:24:39 +02:00
#!/usr/bin/env bash
# wait till it is up, run rofi with error message
2015-02-15 21:34:13 +01:00
sleep 1 && rofi -show run -display :201 &
2014-08-29 16:24:39 +02:00
RPID=$!
# send enter.
sleep 5;
xdotool key 'shift+slash'
2014-08-29 16:24:39 +02:00
sleep 0.4
xdotool key 'shift+slash'
2014-08-29 16:24:39 +02:00
sleep 0.4
xdotool key 'shift+slash'
2014-08-29 16:24:39 +02:00
sleep 0.4
xdotool key Escape
2014-08-29 16:24:39 +02:00
# Get result, kill xvfb
wait ${RPID}
RETV=$?
2014-08-29 16:39:11 +02:00
sleep 1
2014-08-29 16:24:39 +02:00
exit ${RETV}