Created
August 25, 2024 13:16
-
-
Save emad-elsaid/2b873470d0f2cc8f22ebbe1d20c1ec9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
url=`wl-paste` | |
dest="$HOME/Pictures/wallpaper.jpg" | |
if [[ $url == /* ]]; | |
then | |
echo "copy from $url to $dest"; | |
echo "Copying $url" | |
convert "$url" "$dest" | |
else | |
echo "Downloading $url" | |
curl "$url" > "$dest" | |
fi | |
killall hyprpaper | |
hyprpaper & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment