my-scripts/setbg

9 lines
165 B
Bash
Executable File

#!/bin/sh
[ $# -ne 1 ] &&
echo "Requires an image argument." &&
exit 1
cp $1 $HOME/.local/share/wallpaper.jpg
xwallpaper --zoom $HOME/.local/share/wallpaper.jpg