1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00
rofi/Examples/test_script_mode_delim.sh
2023-05-10 18:09:54 +02:00

21 lines
409 B
Bash
Executable file

#!/usr/bin/env bash
if [[ "$@" = "quit" ]]
then
exit 0
fi
# Override the previously set prompt.
# We only want to do this on first call of script.
if [[ $ROFI_RETV = 0 ]]
then
echo -en "\x00delim\x1f\\x1\n"
fi
echo -en "\x00message\x1fmy line1\nmyline2\nmy line3\x1"
echo -en "\x00prompt\x1fChange prompt\x1"
for a in {1..10}
do
echo -en "$a\x1"
done
echo -en "newline\ntest\x1"
echo -en "quit"