mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-03 04:23:42 -05:00
229bb6931b
* delete an invalid memmove in textbox
24 lines
364 B
Bash
Executable file
24 lines
364 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# wait till it is up, run rofi with error message
|
|
sleep 1;
|
|
echo -e -n "aap\nnoot\nmies" | rofi -dmenu > output.txt &
|
|
RPID=$!
|
|
|
|
# send enter.
|
|
sleep 5;
|
|
xdotool key 'Down'
|
|
sleep 0.4
|
|
xdotool key 'Down'
|
|
sleep 0.4
|
|
xdotool key Return
|
|
|
|
# Get result, kill xvfb
|
|
wait ${RPID}
|
|
RETV=$?
|
|
|
|
if [ `cat output.txt` != 'mies' ]
|
|
then
|
|
exit 1
|
|
fi
|
|
exit ${RETV}
|