my-scripts/setbg
Nicolás A. Ortega Froysa 326b550b2f setbg: no arguments resets wallpaper
Also with some minor improvements of the code.
2023-04-14 11:57:50 +02:00

13 lines
179 B
Bash
Executable File

#!/bin/sh
if [ $# -gt 1 ]
then
echo "Too many arguments"
exit 1
fi
[ $# -eq 1 ] &&
cp $1 $HOME/.local/share/wallpaper.jpg
xwallpaper --zoom $HOME/.local/share/wallpaper.jpg