dotfiles/.local/bin/scripts/favicon

8 lines
238 B
Bash
Executable File

#!/bin/bash
# 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"