1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-10-27 05:23:18 -04:00
rofi/Examples/test_script_mode_delim.sh
a1346054 c62137f8ab
Simple maintenance improvements (#1370)
* rofi moved to libera.chat

* unify some theme headers and whitespace

* consistently use the same hashbang for bash

* improve obsolete way of testing equality

see https://github.com/koalaman/shellcheck/wiki/SC2268 for explanation

* use consistent function definitions in bash scripts

* remove duplicated author and fix whitespace

* quote all variables in scripts

fixes many warnings identified through shellcheck

* fix whitespace in scripts

* fix whitespace in non-source files

* fix spelling in non-source files

* fix whitespace and indentation in source files

* fix spelling in source files
2021-08-14 13:03:16 +02:00

20 lines
348 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 "\x00prompt\x1fChange prompt\x1"
for a in {1..10}
do
echo -en "$a\x1"
done
echo -en "newline\ntest\x1"
echo -en "quit"