mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
[Script] Update example and doc.
This commit is contained in:
parent
de38e0f4a9
commit
7587149950
4 changed files with 8 additions and 4 deletions
|
@ -6,7 +6,11 @@ then
|
|||
fi
|
||||
|
||||
# Override the previously set prompt.
|
||||
echo -en "\x00delim\x1f\\x1\n"
|
||||
# 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
|
||||
|
|
|
@ -103,7 +103,7 @@ The following extra options exists:
|
|||
.IP \(bu 2
|
||||
\fBactive\fP: Mark rows as active. (for syntax see the active option in dmenu mode)
|
||||
.IP \(bu 2
|
||||
\fBdelim\fP: Set the delimiter for for next rows. Default is '\\n' and this option should finish with this.
|
||||
\fBdelim\fP: Set the delimiter for for next rows. Default is '\\n' and this option should finish with this. Only call this on first call of script, it is remembered for consecutive calls.
|
||||
|
||||
.SH Parsing row options
|
||||
.PP
|
||||
|
|
|
@ -77,7 +77,7 @@ The following extra options exists:
|
|||
* **markup-rows**: If 'true' renders markup in the row.
|
||||
* **urgent**: Mark rows as urgent. (for syntax see the urgent option in dmenu mode)
|
||||
* **active**: Mark rows as active. (for syntax see the active option in dmenu mode)
|
||||
* **delim**: Set the delimiter for for next rows. Default is '\n' and this option should finish with this.
|
||||
* **delim**: Set the delimiter for for next rows. Default is '\n' and this option should finish with this. Only call this on first call of script, it is remembered for consecutive calls.
|
||||
|
||||
## Parsing row options
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ static void parse_header_entry ( Mode *sw, char *line, ssize_t length )
|
|||
length_key++;
|
||||
}
|
||||
|
||||
if ( length_key < length ) {
|
||||
if ( (length_key+1) < length ) {
|
||||
line[length_key] = '\0';
|
||||
char *value = line + length_key + 1;
|
||||
if ( strcasecmp ( line, "message" ) == 0 ) {
|
||||
|
|
Loading…
Reference in a new issue