Skip to content

Commit

Permalink
update through script - 2024-03-30 23:52:53
Browse files Browse the repository at this point in the history
  • Loading branch information
oasido committed Mar 30, 2024
1 parent 8fb6881 commit b2a17a8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .local/bin/scripts/duck
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
#exec w3m "duckduckgo.com/lite?kd=-1&kp=-1&q=$*"
exec lynx "https://lite.duckduckgo.com/lite?kd=-1&kp=-1&q=$*" # 🦆
#exec lynx "duckduckgo.com/lite?q=$*" # 🦆
#exec lynx "duckduckgo.com/lite?q=$*"

4 changes: 4 additions & 0 deletions .local/bin/scripts/google
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
exec lynx "https://google.com/search?q=$*"
#useragent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1"
#/usr/bin/lynx "--useragent=$useragent" "google.com/search?q=$*"
20 changes: 20 additions & 0 deletions .local/bin/scripts/lynx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh

lynxpath=/usr/bin/lynx
useragent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1 Lynx"

if [ -e "$HOME/.config/lynx/lynx.cfg" ];then
export LYNX_CFG="$HOME/.config/lynx/lynx.cfg"
fi

if [ -e "$HOME/.config/lynx/lynx.lss" ];then
export LYNX_LSS="$HOME/.config/lynx/lynx.lss"
fi

if [ ! -x "$lynxpath" ]; then
echo "Doesn't look like lynx is installed."
exit 1
fi

exec "$lynxpath" --useragent="$useragent" "$@"

0 comments on commit b2a17a8

Please sign in to comment.