-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[script|dmenu] Add option to make row permanent.
fixes: #1952
- Loading branch information
1 parent
f2c0f75
commit afc65ac
Showing
6 changed files
with
45 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ "$*" = "quit" ] | ||
then | ||
exit 0 | ||
if [ "$*" = "quit" ]; then | ||
exit 0 | ||
fi | ||
|
||
if [ "$@" ] | ||
then | ||
# Override the previously set prompt. | ||
echo -en "\x00prompt\x1fChange prompt\n" | ||
for a in {1..10} | ||
do | ||
echo "$a" | ||
done | ||
echo "quit" | ||
if [ "$@" ]; then | ||
# Override the previously set prompt. | ||
echo -en "\x00prompt\x1fChange prompt\n" | ||
for a in {1..10}; do | ||
echo "$a" | ||
done | ||
echo "quit" | ||
else | ||
echo -en "\x00prompt\x1ftesting\n" | ||
echo -en "\0urgent\x1f0,2\n" | ||
echo -en "\0active\x1f1\n" | ||
echo -en "\0markup-rows\x1ftrue\n" | ||
echo -en "\0message\x1fSpecial <b>bold</b>message\n" | ||
echo -en "\x00prompt\x1ftesting\n" | ||
echo -en "\0urgent\x1f0,2\n" | ||
echo -en "\0active\x1f1\n" | ||
echo -en "\0markup-rows\x1ftrue\n" | ||
echo -en "\0message\x1fSpecial <b>bold</b>message\n" | ||
|
||
echo -en "aap\0icon\x1ffolder\n" | ||
echo -en "blob\0icon\x1ffolder\x1fdisplay\x1fblub\n" | ||
echo "noot" | ||
echo "mies" | ||
echo -en "-------------\0nonselectable\x1ftrue\n" | ||
echo "testing" | ||
echo "<b>Bold</b>" | ||
echo "quit" | ||
echo -en "aap\0icon\x1ffolder\n" | ||
echo -en "blob\0icon\x1ffolder\x1fdisplay\x1fblub\n" | ||
echo "noot" | ||
echo "mies" | ||
echo -en "-------------\0nonselectable\x1ftrue\x1fpermanent\x1ftrue\n" | ||
echo "testing" | ||
echo "<b>Bold</b>" | ||
echo "quit" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Believe this is meant to say
permanent
and notpermantent