configuration/local/bin/anselmage

8 lines
203 B
Plaintext
Raw Normal View History

2020-05-13 11:00:38 +02:00
#!/bin/sh
[ "$#" -eq 0 ] && exit
2020-12-04 14:43:22 +01:00
torsocks curl -O "$@"
2020-05-13 11:00:38 +02:00
image="$(basename "$@")"
feh "$image"
mv "$image" /data/pictures/anselmages/
ln -s ../anselmages/"$image" /data/pictures/background-source/"$image"