Update 2024-01-17 18:18 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2024-01-17 18:18:42 +01:00
parent 1c1601e258
commit ca61530b02
14 changed files with 90 additions and 22 deletions

View File

@@ -21,7 +21,7 @@ touch "${HISTFILE}"
read_input() {
local S=$( { echo "paste_from_clipboard"; tail -r ${HISTFILE}; } \
| awk '!seen[$0]++' \
| ${DMENU_CMD} -p "Bookmarks")
| ${DMENU_CMD} -p "Bookmarks" -l 20)
case "${S}" in
paste_from_clipboard) S=$(xclip -o | head -n 1); ;;
@@ -85,7 +85,7 @@ Zalando"
esac
local S="$(printf "%s\n%s" "${DEFAULT}" "${SE}" \
| ${DMENU_CMD} -p "Search Where?")"
| ${DMENU_CMD} -p "Search Where?" -l 20)"
C=$(echo "$C" | sed 's/ /%20/g')
case "${S}" in
OPEN*) URI="${C}"; ;;
@@ -161,6 +161,6 @@ save_history() {
# main program starts here.
read_input
choose_wrapper
choose_browser
# choose_browser
save_history
exec $BROWSER "$(printf '%s' "${URI}" | sed 's/ /%20/g')"