Merge branch 'pius-xi' of gitlab.com:naortega/my-scripts into pius-xi

This commit is contained in:
Nicolás A. Ortega Froysa 2023-08-18 11:00:20 +02:00
commit 46d3cf2484

10
setbg
View File

@ -1,8 +1,12 @@
#!/bin/sh #!/bin/sh
[ $# -ne 1 ] && if [ $# -gt 1 ]
echo "Requires an image argument." && then
echo "Too many arguments"
exit 1 exit 1
fi
[ $# -eq 1 ] &&
cp $1 $HOME/.local/share/wallpaper.jpg
cp $1 $HOME/.local/share/wallpaper.jpg
xwallpaper --zoom $HOME/.local/share/wallpaper.jpg xwallpaper --zoom $HOME/.local/share/wallpaper.jpg