bin/favicon: utilise timg and save locally
This commit is contained in:
parent
79c647bbbf
commit
07fade09c3
|
@ -1,3 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Extract the icon of a given page using duckduckgo
|
# Extract the icon of a given page using duckduckgo
|
||||||
xdg-open "https://icons.duckduckgo.com/ip2/$1.ico"
|
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"
|
||||||
|
|
Loading…
Reference in New Issue