my-scripts/setbg

13 lines
179 B
Plaintext
Raw Permalink Normal View History

2021-08-31 06:25:02 +00:00
#!/bin/sh
if [ $# -gt 1 ]
then
echo "Too many arguments"
2021-08-31 06:25:02 +00:00
exit 1
fi
[ $# -eq 1 ] &&
cp $1 $HOME/.local/share/wallpaper.jpg
2021-08-31 06:25:02 +00:00
xwallpaper --zoom $HOME/.local/share/wallpaper.jpg