dotfiles/.local/bin/scripts/favicon

8 lines
238 B
Plaintext
Raw Normal View History

2020-03-08 18:58:52 +00:00
#!/bin/bash
2021-07-29 14:02:20 +00:00
# Extract the icon of a given page using duckduckgo
url=$(echo $1 | sed 's|https\?://||' | cut -d '/' -f1)
file="/tmp/favicon-$url.ico"
wget -nv -O "$file" "https://icons.duckduckgo.com/ip2/$url.ico"
echo "$file"
timg "$file"