mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
Improve comments.
This commit is contained in:
parent
2a5cf35142
commit
56304e551d
@ -4,8 +4,7 @@ URLQUERY_FILE="$HOME/.local/share/urlquery"
|
|||||||
CLIPBOARD="xclip -o"
|
CLIPBOARD="xclip -o"
|
||||||
ACTION_MENU='@@'
|
ACTION_MENU='@@'
|
||||||
|
|
||||||
# For additional search function, add keywords under open_bookmark function's
|
# For additional search function, see information on open_bookmark function below
|
||||||
# case condition next to search and wiki keywords.
|
|
||||||
|
|
||||||
DMENU() {
|
DMENU() {
|
||||||
dmenu -i -l $1 -p "$2"
|
dmenu -i -l $1 -p "$2"
|
||||||
@ -86,7 +85,7 @@ open_bookmark() {
|
|||||||
URL=$(grep "^$SELECTION=" "$URLQUERY_FILE" | cut -d= -f2-)
|
URL=$(grep "^$SELECTION=" "$URLQUERY_FILE" | cut -d= -f2-)
|
||||||
[ -z "$URL" ] && notify-send "Bookmark not found." && exit 1
|
[ -z "$URL" ] && notify-send "Bookmark not found." && exit 1
|
||||||
case "$URL" in
|
case "$URL" in
|
||||||
*"search"*|*"wiki"*|*"packages"*)
|
*"search"*|*"wiki"*|*"packages"*) # Add your additional search keywords here similarly.
|
||||||
QUERY=$(echo "" | DMENU 0 "Search")
|
QUERY=$(echo "" | DMENU 0 "Search")
|
||||||
URL="${URL}${QUERY}"
|
URL="${URL}${QUERY}"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user